Sha256: 99416a384f7b688beccee533bdd820484405cc2c6809baa98d3710e54e4e0e9b

Contents?: true

Size: 519 Bytes

Versions: 14

Compression:

Stored size: 519 Bytes

Contents

require 'test_helper'

class TestHelperTest < ActionDispatch::IntegrationTest
  include Rambulance::TestHelper

  test '#with_exceptions_app can enable the exceptions app in test' do
    with_exceptions_app do
      get '/does_not_exist'
    end

    assert_equal 404, response.status
  end

  test '#with_exceptions_app can disable the exceptions app in test' do
    with_exceptions_app enabled: false do
      assert_raises ActionController::RoutingError do
        get '/does_not_exist'
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rambulance-3.3.0 test/test_helper_test.rb
rambulance-3.2.0 test/test_helper_test.rb
rambulance-3.1.0 test/test_helper_test.rb
rambulance-3.0.0 test/test_helper_test.rb
rambulance-2.3.0 test/test_helper_test.rb
rambulance-2.2.0 test/test_helper_test.rb
rambulance-2.0.0 test/test_helper_test.rb
rambulance-1.1.1 test/test_helper_test.rb
rambulance-1.1.0 test/test_helper_test.rb
rambulance-1.0.3 test/test_helper_test.rb
rambulance-1.0.2 test/test_helper_test.rb
rambulance-1.0.1 test/test_helper_test.rb
rambulance-1.0.0 test/test_helper_test.rb
rambulance-0.6.0 test/test_helper_test.rb