diff options
| author | cedricnjanga | 2018-03-29 19:30:41 -0700 | 
|---|---|---|
| committer | cedricnjanga | 2018-03-29 19:30:41 -0700 | 
| commit | 1b42ed84a5ac4394b1d135127c98194d073f025c (patch) | |
| tree | f05b3b64c334e4fda83994c58a9fa793b2d9464a /spec/features | |
| parent | 216ad28cfc022e20c57948c99a9ee276b102fcc7 (diff) | |
| download | chouette-core-1b42ed84a5ac4394b1d135127c98194d073f025c.tar.bz2 | |
Refs #6258 Add speac feature for calendars and fix begin_of_association_chain in controller6258-calendar-workgroup
Diffstat (limited to 'spec/features')
| -rw-r--r-- | spec/features/calendars_spec.rb | 16 | 
1 files changed, 16 insertions, 0 deletions
| diff --git a/spec/features/calendars_spec.rb b/spec/features/calendars_spec.rb new file mode 100644 index 000000000..26220746b --- /dev/null +++ b/spec/features/calendars_spec.rb @@ -0,0 +1,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
\ No newline at end of file | 
