aboutsummaryrefslogtreecommitdiffstats
path: root/actionsystemtest/test/cases/driver_adapter_test.rb
blob: cecaa5b958244e503d1a3eacda76fc9a1916fc5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
require "abstract_unit"

class DriverAdapterTest < ActiveSupport::TestCase
  test "only registered adapters are accepted" do
    assert_raises(NameError) do
      ActionSystemTest.driver = :whatever
    end

    assert_nothing_raised do
      ActionSystemTest.driver = :rack_test
    end
  end
end