Sha256: db71f982f01a46357aa32bea8ec68bfced2f17b2b2ec85d87d8315d036b178fe
Contents?: true
Size: 386 Bytes
Versions: 10
Compression:
Stored size: 386 Bytes
Contents
require 'spec_helper' describe Virtus, '#freeze' do subject { object.freeze } let(:model) { Class.new { include Virtus attribute :name, String, :default => 'foo', :lazy => true attribute :age, Integer, :default => 30 } } let(:object) { model.new } it { should be_frozen } its(:name) { should eql('foo') } its(:age) { should be(30) } end
Version data entries
10 entries across 10 versions & 1 rubygems