test/scope_test.rb in mini_shoulda-0.2.0 vs test/scope_test.rb in mini_shoulda-0.3.0
- old
+ new
@@ -1,10 +1,7 @@
require 'test_helper'
-# TODO: This test should disappear when we no longer have to patch MiniTest's
-# Kernel#describe block using our 'mini_shoulda/minitest_describe_patch' file.
-
class ScopeTest < MiniShoulda::SpecCase
should 'use base instance helpers' do
assert public_helper?
assert protected_helper?
@@ -27,5 +24,18 @@
end
end
+
+class DuppedScopeTest < MiniTest::Spec
+
+ context('Context A') { }
+
+ context('Context B') { }
+
+ should 'only show this failure once' do
+ flunk "Passed if you only see this once!!!\n" +
+ "test_0001_only_show_this_failure_once(DuppedScopeTest)"
+ end
+
+end
\ No newline at end of file