test/unit/assertions/assert_raises_tests.rb in assert-2.4.0 vs test/unit/assertions/assert_raises_tests.rb in assert-2.5.0

- old
+ new

@@ -2,11 +2,11 @@ require 'assert/assertions' module Assert::Assertions class AssertRaisesTests < Assert::Context - desc "the assert_raises helper" + desc "`assert_raises`" setup do d = @d = "assert raises fail desc" @test = Factory.test do assert_raises(StandardError, RuntimeError){ raise(StandardError) } # pass assert_raises(StandardError, RuntimeError, d){ raise(Exception) } # fail @@ -36,10 +36,10 @@ end end class AssertNothingRaisedTests < Assert::Context - desc "the assert_nothing_raised helper" + desc "`assert_nothing_raised`" setup do d = @d = "assert nothing raised fail desc" @test = Factory.test do anr = :assert_nothing_raised self.send(anr, StandardError, RuntimeError, d){ raise(StandardError) } # fail