test/verdict_rails_test.rb in verdict-0.11.0 vs test/verdict_rails_test.rb in verdict-0.12.0
- old
+ new
@@ -3,17 +3,24 @@
class VerdictRailsTest < Minitest::Test
def setup
Verdict.clear_repository_cache
new_rails_app = Dummy::Application.new
+ new_rails_app.config.eager_load = false
new_rails_app.initialize!
end
+ def teardown
+ Verdict.default_logger = Logger.new("/dev/null")
+ Verdict.directory = nil
+ Verdict.clear_repository_cache
+ end
+
def test_verdict_railtie_should_find_directory_path
assert_equal Verdict.directory, Rails.root.join('app', 'experiments')
end
def test_verdict_should_eager_load_discovery
expected_experiment = Verdict.instance_variable_get('@repository')
assert expected_experiment.include?("test_rails_app_experiment")
end
-end
\ No newline at end of file
+end