Sha256: ef137199ffab2c46aa7ffd48b70998719fc5ec8ce248dfc59943d94801ff9ccc
Contents?: true
Size: 893 Bytes
Versions: 8
Compression:
Stored size: 893 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper.rb' describe "The anything() mock argument constraint matcher" do specify { anything.should == Object.new } specify { anything.should == Class } specify { anything.should == 1 } specify { anything.should == "a string" } specify { anything.should == :a_symbol } end describe "The boolean() mock argument constraint matcher" do specify { boolean.should == true } specify { boolean.should == false } specify { boolean.should_not == Object.new } specify { boolean.should_not == Class } specify { boolean.should_not == 1 } specify { boolean.should_not == "a string" } specify { boolean.should_not == :a_symbol } end describe "The an_instance_of() mock argument constraint matcher" do # NOTE - this is implemented as a predicate_matcher - see behaviour.rb specify { an_instance_of(String).should == "string" } end
Version data entries
8 entries across 8 versions & 3 rubygems