fixes specs

This commit is contained in:
rgarcia
2016-01-13 19:12:58 +01:00
parent 92de6546b7
commit 44677c0ec2
3 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
module SearchHelper module SearchHelper
def official_level_options def official_level_search_options
options_for_select([ options_for_select([
[t("shared.advanced_search.author_type_1"), 1], [t("shared.advanced_search.author_type_1"), 1],
[t("shared.advanced_search.author_type_2"), 2], [t("shared.advanced_search.author_type_2"), 2],

View File

@@ -21,7 +21,7 @@
<div class="small-12 medium-6 advanced-search columns"> <div class="small-12 medium-6 advanced-search columns">
<h5 class='search-option'><%= t("shared.advanced_search.author_type") %></h5> <h5 class='search-option'><%= t("shared.advanced_search.author_type") %></h5>
<%= select_tag('advanced_search[official_level]', official_level_options, <%= select_tag('advanced_search[official_level]', official_level_search_options,
include_blank: t("shared.advanced_search.author_type_blank")) %> include_blank: t("shared.advanced_search.author_type_blank")) %>
</div> </div>

View File

@@ -249,7 +249,7 @@ feature 'Debates' do
visit edit_debate_path(debate) visit edit_debate_path(debate)
expect(current_path).not_to eq(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." expect(page).to have_content "You do not have permission to carry out the action 'edit' on debate."
end end
@@ -264,7 +264,7 @@ feature 'Debates' do
visit edit_debate_path(debate) visit edit_debate_path(debate)
expect(current_path).not_to eq(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' expect(page).to have_content 'You do not have permission to'
end end