Sha256: 106caccac5fa2a4218cb9341fe4fa9ab92a513d8b187e490b2499aa7d9cc2af4

Contents?: true

Size: 269 Bytes

Versions: 5

Compression:

Stored size: 269 Bytes

Contents

require 'spec_helper'

describe Anima, '#attributes_hash' do
  let(:object) { described_class.new(:foo) }

  let(:value) { mock('Value') }

  let(:instance) { mock(:foo => value) }

  subject { object.attributes_hash(instance) }

  it { should eql(:foo => value) }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
anima-0.0.6 spec/unit/anima/attributes_hash_spec.rb
anima-0.0.5 spec/unit/anima/attributes_hash_spec.rb
anima-0.0.4 spec/unit/anima/attributes_hash_spec.rb
anima-0.0.3 spec/unit/anima/attributes_hash_spec.rb
anima-0.0.2 spec/unit/anima/attributes_hash_spec.rb