Sha256: 9b2b18eab295b3ddacf0460792d39334ba281bd43bb13727b9eba4efada9cca8

Contents?: true

Size: 458 Bytes

Versions: 4

Compression:

Stored size: 458 Bytes

Contents

module RSpec::Rails::Matchers
  module RenderTemplate
    extend RSpec::Matchers::DSL
    matcher :render_template do |options, message|
      $matcher_execution_context.send(:run_action!)
      match_unless_raises Test::Unit::AssertionFailedError do |_|
        options = options.to_s if Symbol === options
        assert_template options, message
      end

      failure_message_for_should do
        rescued_exception.message
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
benhutton-remarkable_rails-4.0.0.alpha7 lib/remarkable_rails/action_controller/matchers/render_template_matcher.rb
benhutton-remarkable_rails-4.0.0.alpha6 lib/remarkable_rails/action_controller/matchers/render_template_matcher.rb
benhutton-remarkable_rails-4.0.0.alpha5 lib/remarkable_rails/action_controller/matchers/render_template_matcher.rb
benhutton-remarkable_rails-4.0.0.alpha4 lib/remarkable_rails/action_controller/matchers/render_template_matcher.rb