Sha256: 75c3f22a1dac6c1c3d5b838eedc74bdea0a01b58e33e3a1d17cc4210ae098df0
Contents?: true
Size: 546 Bytes
Versions: 2
Compression:
Stored size: 546 Bytes
Contents
require 'rails_helper' describe Skipper, :type => :model do describe "#update_attributes!", :versioning => true do context "updating a skipped attribute" do let(:t1) { Time.zone.local(2015, 7, 15, 20, 34, 0) } let(:t2) { Time.zone.local(2015, 7, 15, 20, 34, 30) } it "should not create a version" do skipper = Skipper.create!(:another_timestamp => t1) expect { skipper.update_attributes!(:another_timestamp => t2) }.to_not change { skipper.versions.length } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
paper_trail-4.0.0 | spec/models/skipper_spec.rb |
paper_trail-4.0.0.rc2 | spec/models/skipper_spec.rb |