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.91 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.90 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.89 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.88 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.87 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.86 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.85 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.84 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.83 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.82 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.81 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.80 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.79 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.78 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.77 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.76 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.75 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.74 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.73 spec/mixins/hash_mixin_spec.rb
RubyApp-0.0.72 spec/mixins/hash_mixin_spec.rb