aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers
diff options
context:
space:
mode:
authorLuc Donnet2018-01-02 11:55:02 +0100
committerGitHub2018-01-02 11:55:02 +0100
commitab48fee5d8540e839a29abb9c196303ff7a2e9af (patch)
treecd024143cce12aa6b3e50eebdf00b2cb48407924 /spec/controllers
parent7c6522fe4d0d4522a3d192fb0a0439eb92668b52 (diff)
parent25e039b3de2b45526b233c3ef4d95bb4c9f40a18 (diff)
downloadchouette-core-ab48fee5d8540e839a29abb9c196303ff7a2e9af.tar.bz2
Merge pull request #186 from af83/5102-begin_of_association_chain
5102 Use current_organisation as begin_of_association_chain
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/lines_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/lines_controller_spec.rb b/spec/controllers/lines_controller_spec.rb
index ce5adbbdd..65fe88b96 100644
--- a/spec/controllers/lines_controller_spec.rb
+++ b/spec/controllers/lines_controller_spec.rb
@@ -1,14 +1,14 @@
RSpec.describe LinesController, :type => :controller do
login_user
- let(:line_referential) { create :line_referential }
+ let(:line_referential) { create :line_referential, member: @user.organisation }
let(:line) { create :line, line_referential: line_referential }
describe 'PUT deactivate' do
let(:request){ put :deactivate, id: line.id, line_referential_id: line_referential.id }
it 'should redirect to 403' do
- expect(request).to redirect_to "/403"
+ expect(request).to redirect_to "/403"
end
with_permission "lines.change_status" do