Sha256: ab112d710ec764ca552728b48df94175c948387b2936a2576877e4a96a384ddc

Contents?: true

Size: 392 Bytes

Versions: 26

Compression:

Stored size: 392 Bytes

Contents

require 'spec_helper'

module Test
  class Attr; end
end


describe Scorpion::Attribute do
  it "responds to trait? methods" do
    attr = Scorpion::Attribute.new :name, :contract, :formatted
    expect( attr ).to be_formatted
  end

  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

26 entries across 26 versions & 1 rubygems

Version Path
scorpion-ioc-0.6.2 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-0.6.1 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-0.6.0 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-0.5.23 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-0.5.22 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-0.5.21 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-0.5.20 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-0.5.19 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-0.5.18 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-0.5.17 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-0.5.16 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-0.5.15 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-0.5.14 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-0.5.13 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-0.5.12 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-0.5.11 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-0.5.10 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-0.5.9 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-0.5.8 spec/lib/scorpion/attribute_spec.rb
scorpion-ioc-0.5.7 spec/lib/scorpion/attribute_spec.rb