Sha256: c9e05467a2d8da558027f1e21e4ac86944e63808c78cb068f467ae98dc43cfba

Contents?: true

Size: 905 Bytes

Versions: 72

Compression:

Stored size: 905 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 example_group_methods.rb
  specify { an_instance_of(String).should == "string"  }
end

Version data entries

72 entries across 72 versions & 10 rubygems

Version Path
dchelimsky-rspec-1.1.10 spec/spec/matchers/mock_constraint_matchers_spec.rb
dchelimsky-rspec-1.1.11.1 spec/spec/matchers/mock_constraint_matchers_spec.rb
dchelimsky-rspec-1.1.11.2 spec/spec/matchers/mock_constraint_matchers_spec.rb
dchelimsky-rspec-1.1.11.3 spec/spec/matchers/mock_constraint_matchers_spec.rb
dchelimsky-rspec-1.1.11.4 spec/spec/matchers/mock_constraint_matchers_spec.rb
dchelimsky-rspec-1.1.11.5 spec/spec/matchers/mock_constraint_matchers_spec.rb
dchelimsky-rspec-1.1.11.6 spec/spec/matchers/mock_constraint_matchers_spec.rb
dchelimsky-rspec-1.1.11.7 spec/spec/matchers/mock_constraint_matchers_spec.rb
dchelimsky-rspec-1.1.11 spec/spec/matchers/mock_constraint_matchers_spec.rb
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec/spec/spec/matchers/mock_constraint_matchers_spec.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec/spec/spec/matchers/mock_constraint_matchers_spec.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec/spec/spec/matchers/mock_constraint_matchers_spec.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec/spec/spec/matchers/mock_constraint_matchers_spec.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/mock_constraint_matchers_spec.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/mock_constraint_matchers_spec.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/mock_constraint_matchers_spec.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/mock_constraint_matchers_spec.rb
merb-core-1.1.0.rc1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/mock_constraint_matchers_spec.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/spec/spec/matchers/mock_constraint_matchers_spec.rb
mack-0.8.2 lib/gems/rspec-1.1.11/spec/spec/matchers/mock_constraint_matchers_spec.rb