Sha256: c6c1012d0e16ee3e030b242a3879819774e0dfe5497ff0a8d671b1d7d0f911b9

Contents?: true

Size: 666 Bytes

Versions: 5

Compression:

Stored size: 666 Bytes

Contents

require 'spec_helper'

describe 'Exam Notes' do

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

  let(:exam) { create(:exam) }
  let(:exam_with_note) { create(:exam, :with_note) }

  context 'new', js: true, type: 'note'  do
    before do
      @resource = exam
      visit gaku.edit_exam_path(@resource)
      click '#exams-notes-menu a'
    end

    it_behaves_like 'new note'
  end

  context 'existing', js: true, type: 'note'  do
    before do
      @resource = exam_with_note
      visit gaku.edit_exam_path(@resource)
      click '#exams-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/exams/notes_spec.rb
gaku-0.2.3 frontend/spec/features/other/exams/notes_spec.rb
gaku-0.2.2 frontend/spec/features/other/exams/notes_spec.rb
gaku-0.2.1 frontend/spec/features/other/exams/notes_spec.rb
gaku-0.2.0 frontend/spec/features/other/exams/notes_spec.rb