test/unit/config_helpers_tests.rb in assert-2.18.3 vs test/unit/config_helpers_tests.rb in assert-2.18.4

- old
+ new

@@ -4,23 +4,27 @@ require "assert/config" module Assert::ConfigHelpers class UnitTests < Assert::Context desc "Assert::ConfigHelpers" - subject { helpers1 } + subject { unit_class } - let(:helpers_class1) { + let(:unit_class) { Class.new do include Assert::ConfigHelpers def config # use the assert config since it has tests, contexts, etc - # also maybe use a fresh config that is empty + # also use a fresh config that is empty @config ||= [Assert.config, Assert::Config.new].sample end end } - let(:helpers1) { helpers_class1.new } + end + + class InitTests < UnitTests + desc "when init" + subject { unit_class.new } should have_imeths :runner, :suite, :view should have_imeths :runner_seed, :single_test?, :single_test_file_line should have_imeths :tests_to_run?, :tests_to_run_count should have_imeths :test_count, :result_count, :pass_result_count