fixes specs (unauthenticated users can view spending proposal show)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class SpendingProposalsController < ApplicationController
|
||||
include FeatureFlags
|
||||
|
||||
before_action :authenticate_user!, except: [:index]
|
||||
before_action :authenticate_user!, except: [:index, :show]
|
||||
before_action -> { flash.now[:notice] = flash[:notice].html_safe if flash[:html_safe] && flash[:notice] }
|
||||
|
||||
load_and_authorize_resource
|
||||
|
||||
@@ -178,9 +178,6 @@ feature 'Spending proposals' do
|
||||
end
|
||||
|
||||
scenario "Show" do
|
||||
user = create(:user)
|
||||
login_as(user)
|
||||
|
||||
spending_proposal = create(:spending_proposal,
|
||||
geozone: create(:geozone),
|
||||
association_name: 'People of the neighbourhood')
|
||||
|
||||
Reference in New Issue
Block a user