Sha256: 55716a59e546881223943b7cee4e2fb831c9823edaaee2b2b2ad6e145cf74ee2

Contents?: true

Size: 682 Bytes

Versions: 4

Compression:

Stored size: 682 Bytes

Contents

require 'spec_helper'

describe 'Teacher Notes' do

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

  let(:teacher) { create(:teacher) }
  let(:teacher_with_note) { create(:teacher, :with_note) }
  let(:note) { create(:note) }

  context 'new', type: 'note'  do
    before do
      @resource = teacher
      visit gaku.edit_teacher_path(@resource)
      click tab_link
    end

    it_behaves_like 'new note'
  end

  context 'existing', type: 'note'  do

    before do
      @resource = teacher_with_note
      visit gaku.edit_teacher_path(@resource)
      click tab_link
    end

    it_behaves_like 'edit note'
    it_behaves_like 'delete note'
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gaku-0.1.1 frontend/spec/features/teachers/notes_spec.rb
gaku-0.1.0 frontend/spec/features/teachers/notes_spec.rb
gaku-0.0.3 core/spec/requests/teachers/notes_spec.rb
gaku-0.0.2 core/spec/requests/teachers/notes_spec.rb