Sha256: 93c738861d14c41c63f1c6cfcef859e64fbb2a8667dc5a5a82e9bbd58f9183fe
Contents?: true
Size: 637 Bytes
Versions: 3
Compression:
Stored size: 637 Bytes
Contents
require 'spec_helper' describe Society::ReferenceProcessor do describe "#references" do let(:proxy) { Struct.new(:name, :full_name, :constants, :constant_assignments) } let(:avatar_1) { proxy.new("AnimalMan", "Red::AnimalMan", [], []) } let(:avatar_2) { proxy.new("Arcane", "Rot::Arcane", [], []) } let(:avatar_3) { proxy.new("SwampThing", "Green::SwampThing", [avatar_1, avatar_2], []) } let(:processor) { Society::ReferenceProcessor.new([avatar_1, avatar_2, avatar_3]) } it "returns referenced classes" do expect(processor.references.map(&:to)).to eq([avatar_1, avatar_2]) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
society-1.1.1 | spec/reference_processor_spec.rb |
society-1.1.0 | spec/reference_processor_spec.rb |
society-1.0.0 | spec/reference_processor_spec.rb |