diff options
author | Phil Hughes <me@iamphill.com> | 2017-09-04 21:23:57 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-09-04 21:23:57 +0300 |
commit | 3b1993a83e9b918accdc62be18ebaa4b198c4b90 (patch) | |
tree | 09006144299671ded6f909baed37deacdad27ed0 /spec/helpers | |
parent | 38f15514529865eefd74c3b4618eae23c6eda892 (diff) |
rspec test fixes
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/groups_helper_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/helpers/groups_helper_spec.rb b/spec/helpers/groups_helper_spec.rb index 9d6e03e3868..a71450dcf8c 100644 --- a/spec/helpers/groups_helper_spec.rb +++ b/spec/helpers/groups_helper_spec.rb @@ -91,7 +91,9 @@ describe GroupsHelper do let!(:very_deep_nested_group) { create(:group, parent: deep_nested_group) } it 'outputs the groups in the correct order' do - expect(helper.group_title(very_deep_nested_group)).to match(/>#{group.name}<\/a>.*>#{nested_group.name}<\/a>.*>#{deep_nested_group.name}<\/a>/) + expect(helper.group_title(very_deep_nested_group)) + .to match(/<li style="text-indent: 16px;"><a.*>#{deep_nested_group.name}.*<\/li>.*<a.*>#{very_deep_nested_group.name}<\/a>/m) + # expect(helper.group_title(very_deep_nested_group)).to match(/<\/li>.*<a.*>#{very_deep_nested_group.name}<\/a>/) end end end |