Sha256: 0eeb1812182226bbfb3d6f37c32e530ba39fc3011c655938ce0bb7cbc064921e
Contents?: true
Size: 571 Bytes
Versions: 2
Compression:
Stored size: 571 Bytes
Contents
require 'rspec' module Finitio 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finitio-0.4.1 | spec/unit/system/test_dup.rb |
finitio-0.4.0 | spec/unit/system/test_dup.rb |