Sha256: 9682c9491ec7ae022ce69835e3fd75308d7c2b0b760abb0b653a4b2fbc8daf89
Contents?: true
Size: 527 Bytes
Versions: 5
Compression:
Stored size: 527 Bytes
Contents
require 'spec_helper' describe 'Student Contact Versioning' do let(:student) { create(:student, :with_contact) } let(:contact) { student.contacts.first } it 'saves update history', versioning: true do expect do contact.data = 'Changed' contact.save! contact.reload end.to change(Gaku::Versioning::ContactVersion, :count).by 1 version = Gaku::Versioning::ContactVersion.last version.join_model.should eq 'Gaku::Student' version.joined_resource_id.should eq student.id end end
Version data entries
5 entries across 5 versions & 1 rubygems