Sha256: 8f6c6695bf8b37651fd6af3d8f5d5e92020747508addd677556346c4df200790

Contents?: true

Size: 1.38 KB

Versions: 26

Compression:

Stored size: 1.38 KB

Contents

require 'rspec/matchers'
require 'rspec/expectations/fail_with'
require 'rspec/expectations/errors'
require 'rspec/expectations/extensions'
require 'rspec/expectations/handler'
require 'rspec/expectations/version'
require 'rspec/expectations/backward_compatibility'
require 'rspec/expectations/differ'

module RSpec
  
  # RSpec::Expectations lets you set expectations on your objects.
  #
  #   result.should == 37
  #   team.should have(11).players_on_the_field
  #
  # == How Expectations work.
  #
  # RSpec::Expectations adds two methods to Object:
  #
  #   should(matcher=nil)
  #   should_not(matcher=nil)
  #
  # Both methods take an optional Expression Matcher (See RSpec::Matchers).
  #
  # When +should+ receives an Expression Matcher, it calls <tt>matches?(self)</tt>. If
  # it returns +true+, the spec passes and execution continues. If it returns
  # +false+, then the spec fails with the message returned by <tt>matcher.failure_message</tt>.
  #
  # Similarly, when +should_not+ receives a matcher, it calls <tt>matches?(self)</tt>. If
  # it returns +false+, the spec passes and execution continues. If it returns
  # +true+, then the spec fails with the message returned by <tt>matcher.negative_failure_message</tt>.
  #
  # RSpec ships with a standard set of useful matchers, and writing your own
  # matchers is quite simple. See RSpec::Matchers for details.
  module Expectations
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
gemrage-1.0.0 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations.rb
gemrage-0.4.1 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations.rb
gemrage-0.4.0 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations.rb
gemrage-0.3.2 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations.rb
gemrage-0.3.1 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations.rb
gemrage-0.3.0 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations.rb
gemrage-0.2.0 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations.rb
gemrage-0.1.2 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations.rb
gemrage-0.1.1 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations.rb
gemrage-0.1.0 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations.rb
gemrage-0.0.0 vendor/ruby/1.8/gems/rspec-expectations-2.0.0/lib/rspec/expectations.rb
rspec-expectations-2.0.0 lib/rspec/expectations.rb
rspec-expectations-2.0.0.rc lib/rspec/expectations.rb
rspec-expectations-2.0.0.beta.22 lib/rspec/expectations.rb
rspec-expectations-2.0.0.beta.20 lib/rspec/expectations.rb
rspec-expectations-2.0.0.beta.19 lib/rspec/expectations.rb
rspec-expectations-2.0.0.beta.18 lib/rspec/expectations.rb
rspec-expectations-2.0.0.beta.17 lib/rspec/expectations.rb
rspec-expectations-2.0.0.beta.16 lib/rspec/expectations.rb
rspec-expectations-2.0.0.beta.15 lib/rspec/expectations.rb