Sha256: 9c7a6df8f9c5e1086291bee1aa8bced319f617083baa7ef98e0a5f907fb680bf

Contents?: true

Size: 511 Bytes

Versions: 6

Compression:

Stored size: 511 Bytes

Contents

require 'test_helper'

class ErrorPreviewsControllerTest < ActionDispatch::IntegrationTest
  test '500' do
    get '/error_previews/preview'
    assert_response 500
    assert_template 'errors/generic_error.html'
  end

  test '404' do
    get '/error_previews/preview?code=404'
    assert_response 404
    assert_template 'errors/404.html'
  end

  test 'renders html for pdf requests' do
    get '/error_previews/preview.pdf?code=404'
    assert_response 404
    assert_template 'errors/404.html'
  end


end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
simplificator_infrastructure-0.1.1 test/dummy/test/integration/error_previews_controller_test.rb
simplificator_infrastructure-0.1.0 test/dummy/test/integration/error_previews_controller_test.rb
simplificator_infrastructure-0.0.11 test/dummy/test/integration/error_previews_controller_test.rb
simplificator_infrastructure-0.0.10 test/dummy/test/integration/error_previews_controller_test.rb
simplificator_infrastructure-0.0.9 test/dummy/test/integration/error_previews_controller_test.rb
simplificator_infrastructure-0.0.8 test/dummy/test/integration/error_previews_controller_test.rb