Sha256: 3e0ceac6ca50e999b9ff9b14b87192cf0403580cb353619762f2051157bf8bf1

Contents?: true

Size: 250 Bytes

Versions: 9

Compression:

Stored size: 250 Bytes

Contents

require "spec_helper"

module Test
  class Attr; end
end


describe Scorpion::Attribute do
  it "resolves contract strings to constants" do
    attr = Scorpion::Attribute.new :name, "Test::Attr"
    expect( attr.contract ).to be Test::Attr
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
scorpion-ioc-1.0.10 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-1.0.8 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-1.0.7 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-1.0.6 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-1.0.4 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-1.0.3 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-1.0.2 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-1.0.1 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-1.0.0 spec/lib/scorpion/attribute_spec.rb