aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/runner_test.rb
blob: 1adf8e6d1121687a259c0d1d366dbfd6938ccb5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true
require "abstract_unit"

class RunnerTest < ActiveSupport::TestCase
  test "runner preserves the setting of integration_session" do
    runner = Class.new do
      def before_setup
      end
    end.new

    runner.extend(ActionDispatch::Integration::Runner)
    runner.integration_session.host! "lvh.me"

    runner.before_setup

    assert_equal "lvh.me", runner.integration_session.host
  end
end