spec/test.rb in quicktest-0.5.6 vs spec/test.rb in quicktest-0.5.7
- old
+ new
@@ -88,9 +88,18 @@
it msg do
$r.shift.should =~ /^'#{@@klass} #@@new_singleton_meth #{msg}' FAILED$/
7.times {$r.shift}
end
end
+
+ define_method(:the_method) {}
+ def quicktest
+ msg = "should include the module into class Object"
+ it msg do
+ $r.shift.should =~ /^'#<Class:0x[^>]+> the_method #{msg}' FAILED$/
+ 7.times {$r.shift}
+ end
+ end
end
class TestClass
@@klass = self
def self.quicktest