test/unit/context/subject_dsl_tests.rb in assert-2.17.0 vs test/unit/context/subject_dsl_tests.rb in assert-2.18.0
- old
+ new
@@ -4,11 +4,10 @@
module Assert::Context::SubjectDSL
class UnitTests < Assert::Context
desc "Assert::Context::SubjectDSL"
subject{ @context_class }
-
end
class DescriptionsTests < UnitTests
desc "`descriptions` method"
setup do
@@ -19,11 +18,10 @@
end
should "return a collection containing any descriptions defined on the class" do
assert_equal @descs, subject.send(:descriptions)
end
-
end
class DescriptionTests < UnitTests
desc "`description` method"
setup do
@@ -39,11 +37,10 @@
should "return a string of all the inherited descriptions" do
exp_desc = "parent description and the description for this context"
assert_equal exp_desc, @context_class.description
end
-
end
class SubjectFromLocalTests < UnitTests
desc "`subject` method using local context"
setup do
@@ -54,11 +51,10 @@
end
should "set the subject block on the context class" do
assert_equal @subject_block, @context_class.subject
end
-
end
class SubjectFromParentTests < UnitTests
desc "`subject` method using parent context"
setup do
@@ -70,9 +66,7 @@
end
should "default to it's parents subject block" do
assert_equal @parent_block, @context_class.subject
end
-
end
-
end