Sha256: 0e045e7bdbce812ac5782a7ed0bfbc405a032a75d86c5f027536f84305137151
Contents?: true
Size: 493 Bytes
Versions: 27
Compression:
Stored size: 493 Bytes
Contents
require 'spec_helper' describe Scorpion::Dependency::ArgumentDependency do let( :dependency ) { Scorpion::Dependency::ArgumentDependency.new( arg ) } let( :arg ) { "Hello" } it "matches the same type" do expect( dependency.satisfies?( String ) ).to be_truthy end it "doesn't match different types" do expect( dependency.satisfies?( Regexp ) ).to be_falsy end it "doesn't match traits" do expect( dependency.satisfies?( String, :password ) ).to be_falsy end end
Version data entries
27 entries across 27 versions & 1 rubygems