Sha256: 5d179bf0ba1b577e58e29e8938f5626370b523465d42842e57ab7589d51ee36d
Contents?: true
Size: 482 Bytes
Versions: 4
Compression:
Stored size: 482 Bytes
Contents
require 'spec_helper' require 'kangaroo/model/base' module Kangaroo module Model describe Base do before :all do @klass = Class.new(Kangaroo::Model::Base) @klass.define_multiple_accessors :a, :b end it 'sets attributes on initialization' do @klass.stub!(:default_attributes).and_return({}) @object = @klass.new :a => 'one' @object.instance_variable_get('@attributes')['a'].should == 'one' end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
kangaroo-0.0.3 | spec/model/base_spec.rb |
kangaroo-0.0.2 | spec/model/base_spec.rb |
kangaroo-0.0.1.pre2 | spec/model/base_spec.rb |
kangaroo-0.0.1.pre | spec/model/base_spec.rb |