Sha256: 342477d0ec4f318641981fc1cf870709783703f171333ddd0e3f255534a54651

Contents?: true

Size: 341 Bytes

Versions: 18

Compression:

Stored size: 341 Bytes

Contents

module RSpec::Rails::Matchers
  module RedirectTo
    extend RSpec::Matchers::DSL

    matcher :redirect_to do |destination|
      match_unless_raises Test::Unit::AssertionFailedError do |_|
        assert_redirected_to destination
      end

      failure_message_for_should do
        rescued_exception.message
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rspec-rails-2.3.1 lib/rspec/rails/matchers/redirect_to.rb
rspec-rails-2.3.0 lib/rspec/rails/matchers/redirect_to.rb
rspec-rails-2.2.1 lib/rspec/rails/matchers/redirect_to.rb
rspec-rails-2.2.0 lib/rspec/rails/matchers/redirect_to.rb
rspec-rails-2.1.0 lib/rspec/rails/matchers/redirect_to.rb
rspec-rails-2.0.1 lib/rspec/rails/matchers/redirect_to.rb
rspec-rails-2.0.0 lib/rspec/rails/matchers/redirect_to.rb
rspec-rails-2.0.0.rc lib/rspec/rails/matchers/redirect_to.rb
rspec-rails-2.0.0.beta.22 lib/rspec/rails/matchers/redirect_to.rb
rspec-rails-2.0.0.beta.20 lib/rspec/rails/matchers/redirect_to.rb
rspec-rails-2.0.0.beta.19 lib/rspec/rails/matchers/redirect_to.rb
rspec-rails-2.0.0.beta.18 lib/rspec/rails/matchers/redirect_to.rb
rspec-rails-2.0.0.beta.17 lib/rspec/rails/matchers/redirect_to.rb
rspec-rails-2.0.0.beta.16 lib/rspec/rails/matchers/redirect_to.rb
rspec-rails-2.0.0.beta.15 lib/rspec/rails/matchers/redirect_to.rb
rspec-rails-2.0.0.beta.14.2 lib/rspec/rails/matchers/redirect_to.rb
rspec-rails-2.0.0.beta.14.1 lib/rspec/rails/matchers/redirect_to.rb
rspec-rails-2.0.0.beta.13 lib/rspec/rails/matchers/redirect_to.rb