test/unit/context/setup_dsl_tests.rb in assert-2.18.3 vs test/unit/context/setup_dsl_tests.rb in assert-2.18.4

- old
+ new

@@ -2,14 +2,13 @@ require "assert/context/setup_dsl" module Assert::Context::SetupDSL class UnitTests < Assert::Context desc "Assert::Context::SetupDSL" - subject { context_class1 } + subject { Factory.modes_off_context_class } let(:block1) { ::Proc.new {} } - let(:context_class1) { Factory.modes_off_context_class } end class SetupTeardownOnceMethodsTests < UnitTests desc "once methods" @@ -47,11 +46,12 @@ assert_that(subject.send(:teardowns)).includes(method_name1) end end class ParentContextClassTests < UnitTests + subject { Factory.modes_off_context_class(parent_class1) } + let(:parent_class1) { Factory.modes_off_context_class } - let(:context_class1) { Factory.modes_off_context_class(parent_class1) } end class SetupTeardownMultipleTests < ParentContextClassTests desc "with multiple calls"