Sha256: 9aa528cf73f640ffac3252da330b3458050511340c0da6612099ce775938a419
Contents?: true
Size: 567 Bytes
Versions: 3
Compression:
Stored size: 567 Bytes
Contents
require 'rspec' module Qrb describe System, "dup" do let(:system){ System.new } before do system.add_type(intType) end subject{ system.dup } it{ should be_a(System) } it 'should not be the same object' do subject.should_not be(system) end it 'should have intType' do subject['intType'].should eq(intType) end it 'should not share internals with the original' do subject.add_type(floatType) subject['floatType'].should_not be_nil system['floatType'].should be_nil end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
qrb-0.3.0 | spec/unit/system/test_dup.rb |
qrb-0.2.0 | spec/unit/system/test_dup.rb |
qrb-0.1.0 | spec/unit/system/test_dup.rb |