Sha256: c924fe3bfdad5cdeeec590ea123b0ca4f3dc680aa8f63e56842b2f710f9f387e
Contents?: true
Size: 464 Bytes
Versions: 3
Compression:
Stored size: 464 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
themes_for_rails-0.4.2 | test/support/extensions.rb |
themes_for_rails-0.4.1 | test/support/extensions.rb |
themes_for_rails-0.4.0 | test/support/extensions.rb |