Sha256: 9e64db485ddb8ee10a144f57a077fc3e623001f262e03bdc75afac8498482e08

Contents?: true

Size: 1.26 KB

Versions: 4

Compression:

Stored size: 1.26 KB

Contents

dir = File.dirname(__FILE__)
require File.expand_path("#{dir}/matchers/assert_select")
require File.expand_path("#{dir}/matchers/have_text")
require File.expand_path("#{dir}/matchers/redirect_to")
require File.expand_path("#{dir}/matchers/render_template")

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

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
deckshuffler-0.0.2 vendor/plugins/rspec_on_rails/lib/spec/rails/matchers.rb
has_finder-0.1.1 spec/rails/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers.rb
has_finder-0.1.2 spec/rails/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers.rb
has_finder-0.1.3 spec/rails/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers.rb