Sha256: 91aa4c76595c1d5a47a50504a18e09cdef291ac6c0636496563f251935b21191

Contents?: true

Size: 664 Bytes

Versions: 5

Compression:

Stored size: 664 Bytes

Contents

require 'spec_helper'

describe 'Syllabus Notes' do

  before { as :admin }
  before(:all) { set_resource 'syllabus-note' }

  let(:syllabus) { create(:syllabus) }
  let(:syllabus_with_note) { create(:syllabus, :with_note) }

  context 'new', js: true do
    before do
      @resource = syllabus
      visit gaku.edit_syllabus_path(@resource)
      click '#notes-menu a'
    end

    it_behaves_like 'new note'
  end

  context 'existing', js: true do
    before do
      @resource = syllabus_with_note
      visit gaku.edit_syllabus_path(@resource)
      click '#notes-menu a'
    end

    it_behaves_like 'edit note'
    it_behaves_like 'delete note'
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gaku-0.2.4 frontend/spec/features/other/syllabuses/notes_spec.rb
gaku-0.2.3 frontend/spec/features/other/syllabuses/notes_spec.rb
gaku-0.2.2 frontend/spec/features/other/syllabuses/notes_spec.rb
gaku-0.2.1 frontend/spec/features/other/syllabuses/notes_spec.rb
gaku-0.2.0 frontend/spec/features/other/syllabuses/notes_spec.rb