Sha256: 05d37497b61e9c161766047b9e25b103f59a647eb04569b8353565c76ddd27eb
Contents?: true
Size: 739 Bytes
Versions: 5
Compression:
Stored size: 739 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 '#student-notes-menu a' 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 '#student-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