Sha256: 87e26cbf4cb68bdfa8e383bf633d3cfc910590d7dcdd9146b30241bfba57797f
Contents?: true
Size: 535 Bytes
Versions: 1
Compression:
Stored size: 535 Bytes
Contents
# encoding: UTF-8 require 'spec_helper' describe ActiveData::Model do let(:model) do Class.new do include ActiveData::Model attribute :name attribute :count, default: 0 end end specify{model.i18n_scope.should == :active_data} specify{model.new.should_not be_persisted} specify{model.instantiate({}).should be_an_instance_of model} specify{model.instantiate({}).should be_persisted} context 'Fault tolerance' do specify{ expect { model.new(:foo => 'bar') }.not_to raise_error } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_data-0.1.0 | spec/lib/active_data/model_spec.rb |