Sha256: 6b1e3e5b648b4c91eec8338187f5c61b4ae5ccb022005ea92ac31f6bb1d3e52f

Contents?: true

Size: 444 Bytes

Versions: 5

Compression:

Stored size: 444 Bytes

Contents

# encoding: utf-8
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) }
    assert_equal(result, output.string)
  end

end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
themes_for_rails4-1.5.1 test/support/extensions.rb
themes_for_rails-0.5.1 test/support/extensions.rb
themes_for_rails-0.5.0 test/support/extensions.rb
active_theme-0.5.0.pre test/support/extensions.rb
themes_for_rails-0.5.0.pre test/support/extensions.rb