Sha256: dd4035caa267c4d34e04cd9b30c187076d647db62688e76cde24d6c36532d8b3
Contents?: true
Size: 809 Bytes
Versions: 2
Compression:
Stored size: 809 Bytes
Contents
require 'spec_helper' module Alf module Viewpoint describe Metadata, ".reduce" do subject{ metadata.expand } let(:metadata) do @base = base = viewpoint{ } @user = user = viewpoint{ expects(base) } @util1 = util1 = viewpoint{ expects(base); depends(:user, user) } @util2 = util2 = viewpoint{ expects(util1); depends(:user, user) } @term = viewpoint{ expects(util2) } @term.metadata end it 'should be a Metadata' do subject.should be_a(Metadata) end it 'should have expected expectations' do subject.expectations.should eq([ @base, @util1, @util2 ]) end it 'should have expected dependencies' do subject.dependencies.should eq(user: [ @user ]) 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_expand.rb |
alf-core-0.14.0 | spec/unit/alf-viewpoint/metadata/test_expand.rb |