Sha256: a06e83023df719a82e016ff414b260d07abb7764e0fb9b0029501ef188833a1b
Contents?: true
Size: 709 Bytes
Versions: 2
Compression:
Stored size: 709 Bytes
Contents
require 'spec_helper' describe 'Student Notes' do before { as :admin } before(:all) { set_resource 'student-note' } let(:student) { create(:student) } let(:student_with_note) { create(:student, :with_note) } let(:note) { create(:note, notable: student) } context 'new', type: 'note' do before do @resource = student visit gaku.edit_student_path(@resource) click tab_link end it_behaves_like 'new note' end context 'existing', js: true, type: 'note' do before do @resource = student_with_note visit gaku.edit_student_path(@resource) click tab_link end it_behaves_like 'edit note' it_behaves_like 'delete note' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gaku-0.0.3 | core/spec/requests/students/notes_spec.rb |
gaku-0.0.2 | core/spec/requests/students/notes_spec.rb |