Sha256: 32b12eab694d174de602478252600347ec1040fbc35fbc77794f5611939ed52b
Contents?: true
Size: 761 Bytes
Versions: 2
Compression:
Stored size: 761 Bytes
Contents
require 'rspec/matchers' require 'test/unit/assertionfailederror' module Rspec module Rails module Matchers include Rspec::Matchers def redirect_to(destination) example = self Matcher.new :redirect_to, destination do |destination_| match_unless_raises Test::Unit::AssertionFailedError do |_| example.assert_redirected_to destination_ end end end def render_template(options={}, message=nil) example = self Matcher.new :render_template, options, message do |options_, message_| match_unless_raises Test::Unit::AssertionFailedError do |_| example.assert_template options_, message_ end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-rails-2.0.0.beta.1 | lib/rspec/rails/matchers.rb |
rspec-rails-2.0.0.a10 | lib/rspec/rails/matchers.rb |