Skip to content

Commit

Permalink
- Added example for value wrapper with block to Expectations module. …
Browse files Browse the repository at this point in the history
…(stomar)

[git-p4: depot-paths = "//src/minitest/dev/": change = 12501]
  • Loading branch information
zenspider committed Jan 12, 2020
1 parent 5399dc5 commit cdfb5b9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/minitest/expectations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
#
# it "should still work in threads" do
# my_threaded_thingy do
# (1+1).must_equal 2 # bad
# assert_equal 2, 1+1 # good
# _(1 + 1).must_equal 2 # good
# value(1 + 1).must_equal 2 # good, also #expect
# (1+1).must_equal 2 # bad
# assert_equal 2, 1+1 # good
# _(1 + 1).must_equal 2 # good
# value(1 + 1).must_equal 2 # good, also #expect
# _ { 1 + "1" }.must_raise TypeError # good
# end
# end

Expand Down

0 comments on commit cdfb5b9

Please sign in to comment.