Sha256: 1f1c7a3f7d7f389ae20d617bff4ae459f99266652a247b7f50eb708bf8015353

Contents?: true

Size: 592 Bytes

Versions: 1

Compression:

Stored size: 592 Bytes

Contents

require 'test_helper'

class ExceptionsAppTest < TestCase
 
  def test_configuration_block_correct_object
    ExceptionsApp.configure do |config|
      assert_instance_of ExceptionsApp::Config, config
    end
  end
  
  def test_should_overwrite_default_configuration
    environments = ["prod#1", "prod#2"]
    errors_path = ["123", "456"]
    ExceptionsApp.configure do |config|
      config.envs = environments
      config.errors_path = errors_path
    end
    assert_equal environments, ExceptionsApp.config.envs
    assert_equal errors_path, ExceptionsApp.config.errors_path
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
exceptions_app-0.0.1 test/lib/exceptions_app_test.rb