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