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