Sha256: 0b8ecf4aa1e5351a4d797c041e5bbbad6f0f717309644601a0a32c36462a2cb6
Contents?: true
Size: 624 Bytes
Versions: 1
Compression:
Stored size: 624 Bytes
Contents
require 'spec_helper' describe Mavenlink::Concerns::LockedRecord do subject do Class.new do def self.create end include Mavenlink::Concerns::LockedRecord end end specify do expect { subject.send(:new).save }.to raise_error Mavenlink::RecordLockedError, /locked.*changed/ end specify do expect { subject.send(:new).destroy }.to raise_error Mavenlink::RecordLockedError, /locked.*deleted/ end specify do expect { subject.new }.to raise_error NameError, /method.*new/ end specify do expect { subject.create }.to raise_error NameError, /method.*create/ end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mavenlink-0.0.1 | spec/lib/mavenlink/concerns/locked_record_spec.rb |