Sha256: 28ce6515d7284d2f5a77b1efbe90c02f341385a96cd415106d41c7ae130e8529
Contents?: true
Size: 703 Bytes
Versions: 5
Compression:
Stored size: 703 Bytes
Contents
require 'spec_helper' describe 'Student Contact Changes' do before { as :admin } before do @student = create(:student, :with_contact) @student.reload @contact = @student.contacts.first end it 'saves edits', type: 'contact', versioning: true do old_data = @contact.data @contact.update_attributes(data: '123456789') visit gaku.admin_changes_student_contacts_path page.should have_content old_data page.should have_content 'update' page.should have_content '123456789' end it 'saves destroy', type: 'contact', versioning: true do @contact.destroy visit gaku.admin_changes_student_contacts_path page.should have_content 'destroy' end end
Version data entries
5 entries across 5 versions & 1 rubygems