fixes specs
This commit is contained in:
@@ -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],
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user