Sha256: e62dd8b7551caa014463978efe51abe1963c8219e2b5e8def5acf28e583737b2

Contents?: true

Size: 670 Bytes

Versions: 70

Compression:

Stored size: 670 Bytes

Contents

require 'ruby_app/mixins/hash_mixin'

describe RubyApp::Mixins::HashMixin do

  describe 'positive' do

    before(:all) do

      class TestHashMixin
        include RubyApp::Mixins::HashMixin

        def initialize
          @data = { :get_a => TestHashMixin }
        end

        def [](key)
          @data[key]
        end

        def []=(key, value)
          @data[key] = value
        end

      end

    end

    let(:instance_a) { TestHashMixin.new }

    specify { instance_a.get_a.should == TestHashMixin }

    specify do
      instance_a.get_a = RubyApp::Mixins::HashMixin
      instance_a.get_a.should == RubyApp::Mixins::HashMixin
    end

  end

end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
RubyApp-0.0.48 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.47 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.46 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.45 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.44 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.43 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.42 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.41 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.30 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.29 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.28 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.27 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.26 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.25 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.24 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.23 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.22 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.21 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.20 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.19 spec/mixins/hash_mixin_spec.rb