diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-06-22 21:07:41 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-06-23 21:43:32 +0300 |
commit | 3e7e08adfc101359c0d5628ed6584874f5b5a713 (patch) | |
tree | 4df368487f3ed86f6da6207d8854a90fd43686d7 /spec/features | |
parent | 5cd1a48d5e1b020770cb105eb946ff2936e2136a (diff) |
Show group name instead of path on group page
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/groups/group_settings_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/groups/group_settings_spec.rb b/spec/features/groups/group_settings_spec.rb index 5ad777248ec..56e163ec4d0 100644 --- a/spec/features/groups/group_settings_spec.rb +++ b/spec/features/groups/group_settings_spec.rb @@ -18,14 +18,14 @@ feature 'Edit group settings', feature: true do update_path(new_group_path) visit new_group_full_path expect(current_path).to eq(new_group_full_path) - expect(find('h1.group-title')).to have_content(new_group_path) + expect(find('h1.group-title')).to have_content(group.name) end scenario 'the old group path redirects to the new path' do update_path(new_group_path) visit old_group_full_path expect(current_path).to eq(new_group_full_path) - expect(find('h1.group-title')).to have_content(new_group_path) + expect(find('h1.group-title')).to have_content(group.name) end context 'with a subgroup' do @@ -37,14 +37,14 @@ feature 'Edit group settings', feature: true do update_path(new_group_path) visit new_subgroup_full_path expect(current_path).to eq(new_subgroup_full_path) - expect(find('h1.group-title')).to have_content(subgroup.path) + expect(find('h1.group-title')).to have_content(subgroup.name) end scenario 'the old subgroup path redirects to the new path' do update_path(new_group_path) visit old_subgroup_full_path expect(current_path).to eq(new_subgroup_full_path) - expect(find('h1.group-title')).to have_content(subgroup.path) + expect(find('h1.group-title')).to have_content(subgroup.name) end end |