Sha256: 9acc5c52e041890f6d844dbf06d75bf27ac024c802dd7d401cab3de2e3232443

Contents?: true

Size: 455 Bytes

Versions: 6

Compression:

Stored size: 455 Bytes

Contents

require 'active_support/test_case'

class ActiveSupport::TestCase
  def assert_named_route(result, name)
    assert_equal result, @routes.url_helpers.send(name)
  end
  def assert_send_file(result)
    assert(@response.body.is_a? Proc)
    require 'stringio'
    output = StringIO.new
    output.binmode
    assert_nothing_raised { @response.body.call(@response, output) }
    puts "OUT: #{output.output}"
    assert_equal(result, output.string)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
themes_for_rails-0.3.1 test/support/extensions.rb
themes_for_rails-0.3.0 test/support/extensions.rb
themes_for_rails-0.2.5 test/support/extensions.rb
themes_for_rails-0.2.4 test/support/extensions.rb
themes_for_rails-0.2.2 test/support/extensions.rb
themes_for_rails-0.2.1 test/support/extensions.rb