From 44677c0ec273b9d30690c4ad55c4e752a5570cca Mon Sep 17 00:00:00 2001 From: rgarcia Date: Wed, 13 Jan 2016 19:12:58 +0100 Subject: [PATCH] fixes specs --- app/helpers/search_helper.rb | 2 +- app/views/shared/_advanced_search.html.erb | 2 +- spec/features/debates_spec.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb index 993909f6f..9deab2efe 100644 --- a/app/helpers/search_helper.rb +++ b/app/helpers/search_helper.rb @@ -1,6 +1,6 @@ module SearchHelper - def official_level_options + def official_level_search_options options_for_select([ [t("shared.advanced_search.author_type_1"), 1], [t("shared.advanced_search.author_type_2"), 2], diff --git a/app/views/shared/_advanced_search.html.erb b/app/views/shared/_advanced_search.html.erb index 1f9c8f619..984165e47 100644 --- a/app/views/shared/_advanced_search.html.erb +++ b/app/views/shared/_advanced_search.html.erb @@ -21,7 +21,7 @@ diff --git a/spec/features/debates_spec.rb b/spec/features/debates_spec.rb index 68663b9e0..617d270a2 100644 --- a/spec/features/debates_spec.rb +++ b/spec/features/debates_spec.rb @@ -249,7 +249,7 @@ feature 'Debates' do visit edit_debate_path(debate) expect(current_path).not_to eq(edit_debate_path(debate)) - expect(current_path).to eq(debates_path) + expect(current_path).to eq(proposals_path) expect(page).to have_content "You do not have permission to carry out the action 'edit' on debate." end @@ -264,7 +264,7 @@ feature 'Debates' do visit edit_debate_path(debate) expect(current_path).not_to eq(edit_debate_path(debate)) - expect(current_path).to eq(debates_path) + expect(current_path).to eq(proposals_path) expect(page).to have_content 'You do not have permission to' end