Sha256: 8b3f9108b89dac0a358c55c54a0cbcc307e0ff1a429c179e3b816ac9ef6382b6
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
# frozen_string_literal: true require 'test_helper' class ConfigurationTest < ASDeprecationTracker::TestCase def setup @config = ASDeprecationTracker::Configuration.new super end def test_envs assert_equal ['test'], @config.envs end def test_envs= @config.envs = ['development'] assert_equal ['development'], @config.envs end def test_line_tolerance assert_equal 10, @config.line_tolerance end def test_line_tolerance= @config.line_tolerance = 42 assert_equal 42, @config.line_tolerance end def test_register_behavior? assert_equal true, @config.register_behavior? end def test_register_behavior= @config.register_behavior = false assert_equal false, @config.register_behavior? end def test_whitelist_file assert_kind_of String, @config.whitelist_file assert File.exist?(@config.whitelist_file) end def test_whitelist_file= @config.whitelist_file = 'another_file.yaml' assert_equal 'another_file.yaml', @config.whitelist_file end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
as_deprecation_tracker-1.0.0 | test/configuration_test.rb |