summaryrefslogtreecommitdiff
path: root/test/minitest
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
commit7bcd50555b18117a84125bc6d8bd2d098651ca9d (patch)
tree91f93fc4b04cbb9dfc1a5555d6adb5043e00165c /test/minitest
parentbd3cdcf3940d1647bf86a3cce1e770a8be31e091 (diff)
Imported minitest 1.3.1 r4532.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/minitest')
-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 f7cd60a..89c5523 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