aboutsummaryrefslogtreecommitdiffstats
path: root/spec/views
diff options
context:
space:
mode:
authorLuc Donnet2018-02-08 17:46:49 +0100
committerGitHub2018-02-08 17:46:49 +0100
commitd0f6b92c7cbf48fad205bb96b85d8305f80d13dc (patch)
treecde6a6b74efee2f9f66edf920930cba259687dc7 /spec/views
parente07ef0eb9dac728ee5033b42c318692e2368b897 (diff)
parent6e902fd70fdd21e0ee31fa5f2ee764357b0ea477 (diff)
downloadchouette-core-d0f6b92c7cbf48fad205bb96b85d8305f80d13dc.tar.bz2
Merge pull request #253 from af83/5683-add_workgroup_id_to_calendars
First draft for including calendars into workgroup
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/referentials/show.html.erb_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/views/referentials/show.html.erb_spec.rb b/spec/views/referentials/show.html.erb_spec.rb
index 4a2afe2ca..6fd51949a 100644
--- a/spec/views/referentials/show.html.erb_spec.rb
+++ b/spec/views/referentials/show.html.erb_spec.rb
@@ -3,20 +3,22 @@ require 'spec_helper'
describe "referentials/show", type: :view do
let!(:referential) do
- referential = create(:referential)
+ referential = create(:referential, organisation: organisation)
assign :referential, referential.decorate(context: {
current_organisation: referential.organisation
})
end
let(:permissions){ [] }
let(:current_organisation) { organisation }
- let(:current_offer_workbench) { create :workbench, organisation: current_organisation}
+ let(:current_offer_workbench) { create :workbench, organisation: organisation}
+ let(:current_workgroup) { current_offer_workbench.workgroup }
let(:readonly){ false }
before :each do
assign :reflines, []
allow(view).to receive(:current_offer_workbench).and_return(current_offer_workbench)
allow(view).to receive(:current_organisation).and_return(current_organisation)
+ allow(view).to receive(:current_workgroup).and_return(current_workgroup)
allow(view).to receive(:current_user).and_return(current_user)
allow(view).to receive(:resource).and_return(referential)