fixes specs
This commit is contained in:
@@ -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],
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
<div class="small-12 medium-6 advanced-search columns">
|
||||
<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")) %>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user