Sha256: a0a3e928600e7d3c4b2a35b6099c7dc3c7e6e9729cc6b52b85840ca47c569590
Contents?: true
Size: 903 Bytes
Versions: 2
Compression:
Stored size: 903 Bytes
Contents
require 'spec_helper' module Alf module Viewpoint describe Metadata, "#dup" do let(:metadata){ Metadata.new([1, 2], {a: [3, 4]}, [:m]) } subject{ metadata.dup } it 'should be a different Metadata' do subject.should be_a(Metadata) subject.should_not be(metadata) end it 'should have different yet equal expectations' do subject.expectations.should_not be(metadata.expectations) subject.expectations.should eq(metadata.expectations) end it 'should have different yet equal dependencies' do subject.dependencies.should_not be(metadata.dependencies) subject.dependencies.should eq(metadata.dependencies) end it 'should have different yet equal members' do subject.members.should_not be(metadata.members) subject.members.should eq(metadata.members) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alf-core-0.15.0 | spec/unit/alf-viewpoint/metadata/test_dup.rb |
alf-core-0.14.0 | spec/unit/alf-viewpoint/metadata/test_dup.rb |