Sha256: cf278bfe321a58f8a39e8302aeb36e1ddfe08f2c854719ee625785604e747170

Contents?: true

Size: 1.33 KB

Versions: 9

Compression:

Stored size: 1.33 KB

Contents

module Spec
  module Rails
    # Spec::Rails::Expectations::Matchers provides several expectation matchers
    # intended to work with Rails components like models and responses. For example:
    #
    #   response.should redirect_to("some/url") #redirect_to(url) is the matcher.
    #
    # In addition to those you see below, the arbitrary predicate feature of RSpec
    # makes the following available as well:
    #
    #   response.should be_success #passes if response.success?
    #   response.should be_redirect #passes if response.redirect?
    #
    # Note that many of these matchers are part of a wrapper of <tt>assert_select</tt>, so
    # the documentation comes straight from that with some slight modifications.
    # <tt>assert_select</tt> is a Test::Unit extension originally contributed to the
    # Rails community as a plugin by Assaf Arkin and eventually shipped as part of Rails.
    #
    # For more info on <tt>assert_select</tt>, see the relevant Rails documentation.
    module Matchers
    end
  end
end

require 'spec/rails/matchers/ar_be_valid'
require 'spec/rails/matchers/assert_select'
require 'spec/rails/matchers/change'
require 'spec/rails/matchers/have_text'
require 'spec/rails/matchers/include_text'
require 'spec/rails/matchers/redirect_to'
require 'spec/rails/matchers/route_to'
require 'spec/rails/matchers/render_template'

Version data entries

9 entries across 9 versions & 4 rubygems

Version Path
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-rails-1.3.4/lib/spec/rails/matchers.rb
richzhou-rspec-rails-1.3.4 lib/spec/rails/matchers.rb
rspec-rails-1.3.4 lib/spec/rails/matchers.rb
rspec-rails-1.3.3 lib/spec/rails/matchers.rb
rspec-rails-1.3.3.rc lib/spec/rails/matchers.rb
rspec-rails-w-factory_girl-1.3.2.1 lib/spec/rails/matchers.rb
rspec-rails-w-factory_girl-1.3.2 lib/spec/rails/matchers.rb
rspec-rails-1.3.2 lib/spec/rails/matchers.rb
rspec-rails-1.3.1 lib/spec/rails/matchers.rb