Sha256: f60e91245cd824e97935bb42b03976b952fc2addc3dbe491fbb5883a824770a3
Contents?: true
Size: 1.04 KB
Versions: 5
Compression:
Stored size: 1.04 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?(File.join(Rails.root, @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
5 entries across 5 versions & 1 rubygems