Sha256: a2e891c38a62335e2ff0db84d4a9a5f473a7429f49b2860862c88b16c03a34c0

Contents?: true

Size: 1.25 KB

Versions: 17

Compression:

Stored size: 1.25 KB

Contents

dir = File.dirname(__FILE__)
require 'spec/rails/matchers/assert_select'
require 'spec/rails/matchers/have_text'
require 'spec/rails/matchers/include_text'
require 'spec/rails/matchers/redirect_to'
require 'spec/rails/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

17 entries across 17 versions & 4 rubygems

Version Path
jcnetdev-rspec-rails-1.1.5 lib/spec/rails/matchers.rb
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec-rails/lib/spec/rails/matchers.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec-rails/lib/spec/rails/matchers.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec-rails/lib/spec/rails/matchers.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec-rails/lib/spec/rails/matchers.rb
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers.rb
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers.rb
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers.rb
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers.rb
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers.rb
jstorimer-deep-test-0.2.0 sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers.rb
jstorimer-deep-test-0.1.0 sample_rails_project/vendor/plugins/rspec_on_rails/lib/spec/rails/matchers.rb
spree-0.4.0 vendor/plugins/rspec-rails/lib/spec/rails/matchers.rb
spree-0.4.1 vendor/plugins/rspec-rails/lib/spec/rails/matchers.rb
spree-0.5.0 vendor/plugins/rspec-rails/lib/spec/rails/matchers.rb
spree-0.5.1 vendor/plugins/rspec-rails/lib/spec/rails/matchers.rb