Sha256: 22157b660b422fcbcfd35d6c91bc39b3b3c0d596aaa604b628b245f7a42ba06e
Contents?: true
Size: 458 Bytes
Versions: 1
Compression:
Stored size: 458 Bytes
Contents
require 'spec_helper' describe AssociationCallbacks do describe '.version' do it 'is a string' do expect(AssociationCallbacks.version).to be_a(String) end it 'is with correct format' do expect(AssociationCallbacks.version).to match(/^\d+\.\d+(\.\d+)?$/) end it 'is freezed' do expect { AssociationCallbacks.version.gsub!('.', '#') }.to raise_error(/can't modify frozen string/i) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
association_callbacks-0.2.2 | spec/association_callbacks_spec.rb |