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