Sha256: 6c51b6cfb2c2ff13300562482e9a512bc335df30c3a8a7ad3ef07c955abacff5

Contents?: true

Size: 413 Bytes

Versions: 5

Compression:

Stored size: 413 Bytes

Contents

require 'spec_helper'

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

  subject { object.get(target) }

  let(:target_class) do
    Class.new do
      attr_reader :foo

      def initialize(foo)
        @foo = foo
      end
    end
  end

  let(:target) { target_class.new(value) }

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

  it 'should return value' do
    should be(value)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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