blob: 26220746b4c5333fc2419bbd58454b4457cfd8f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
RSpec.describe 'Calendars', type: :feature do
login_user
let(:calendar1) { create(:calendar, workgroup: @user.organisation.workgroups.first, organisation: @user.organisation) }
let(:calendar2) { create(:calendar) }
describe "index" do
before(:each) do
visit workgroup_calendars_path(calendar1.workgroup)
end
it "should only display calendars from same workgroup" do
expect(page).to have_content calendar1.name
expect(page).to_not have_content calendar2.name
end
end
end
|