summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-20 23:26:55 +0000
committerryan <ryan@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-20 23:26:55 +0000
commitd42f5c7ca2b0cd71891b6b43de880fe83e807311 (patch)
tree91f93fc4b04cbb9dfc1a5555d6adb5043e00165c /test
parentfcc15762f1a6642d687d4d406164f597447b4e47 (diff)
downloadruby-d42f5c7ca2b0cd71891b6b43de880fe83e807311.tar.gz
ruby-d42f5c7ca2b0cd71891b6b43de880fe83e807311.tar.xz
ruby-d42f5c7ca2b0cd71891b6b43de880fe83e807311.zip
Imported minitest 1.3.1 r4532.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/minitest/test_mini_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/minitest/test_mini_spec.rb b/test/minitest/test_mini_spec.rb
index f7cd60acd..89c552308 100644
--- a/test/minitest/test_mini_spec.rb
+++ b/test/minitest/test_mini_spec.rb
@@ -154,4 +154,16 @@ describe MiniTest::Spec do
1.wont_be_same_as(2).must_equal false
proc { 1.wont_be_same_as 1 }.must_raise MiniTest::Assertion
end
+
+ it "needs to be sensible about must_include order" do
+ @assertion_count = 6
+ [1, 2, 3].must_include(2).must_equal true
+ proc { [1, 2, 3].must_include 5 }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to be sensible about wont_include order" do
+ @assertion_count = 6
+ [1, 2, 3].wont_include(5).must_equal false
+ proc { [1, 2, 3].wont_include 2 }.must_raise MiniTest::Assertion
+ end
end