require 'test_helper'

class ConfigurationTest < Minitest::Test
  def teardown
    ActiveWaiter.configuration = nil
  end

  def test_configuration_defaults
    assert_nil ActiveWaiter.configuration.layout
  end

  def test_configuration_layout
    ActiveWaiter.configure do |config|
      config.layout = 'layouts/application'
    end

    assert_equal "layouts/application", ActiveWaiter.configuration.layout
  end
end

require 'test_helper'

class ConfigurationTest < Minitest::Test
  def setup
    ActiveWaiter.configuration = nil
  end

  def test_configuration_defaults
    assert_nil ActiveWaiter.configuration.layout
  end

  def test_configuration_layout
    ActiveWaiter.configure do |config|
      config.layout = 'layouts/application'
    end

    assert_equal "layouts/application", ActiveWaiter.configuration.layout
    ActiveWaiter.configuration = nil
  end
end

Fix sporadic build break when affected by leftover config from other tests
Fix sporadic build break when affected by leftover config from other tests
