Sha256: d65e54242585c1eb7238f170c417cfe598388b326e35e0ed6ff06dcd7e576210

Contents?: true

Size: 483 Bytes

Versions: 5

Compression:

Stored size: 483 Bytes

Contents

require "test_helper"

module Cogy
  class ErrorTemplateTest < ActionDispatch::IntegrationTest
    include Engine.routes.url_helpers

    setup { @routes = Engine.routes }

    def test_error_tmpl_message
      cmd :raiser, {}, "george"
      assert response.body.include?("boom")
      assert response.body.include?("@george")
    end

    def test_error_tmpl_contenttype
      cmd :raiser, {}, "george"
      assert_equal "text/plain", response.content_type.to_s
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cogy-0.6.0 test/integration/error_template_test.rb
cogy-0.5.2 test/integration/error_template_test.rb
cogy-0.5.1 test/integration/error_template_test.rb
cogy-0.5.0 test/integration/error_template_test.rb
cogy-0.4.0 test/integration/error_template_test.rb