Skip to content

Commit

Permalink
- Fixed expectation doco to not use global expectations.
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/minitest/dev/": change = 12549]
  • Loading branch information
zenspider committed Feb 11, 2020
1 parent d611604 commit 7b01f94
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions lib/minitest/expectations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#assert_empty.
#
# collection.must_be_empty
# _(collection).must_be_empty
#
# :method: must_be_empty

Expand All @@ -31,7 +31,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#assert_equal
#
# a.must_equal b
# _(a).must_equal b
#
# :method: must_equal

Expand All @@ -40,7 +40,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#assert_in_delta
#
# n.must_be_close_to m [, delta]
# _(n).must_be_close_to m [, delta]
#
# :method: must_be_close_to

Expand All @@ -51,7 +51,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#assert_in_epsilon
#
# n.must_be_within_epsilon m [, epsilon]
# _(n).must_be_within_epsilon m [, epsilon]
#
# :method: must_be_within_epsilon

Expand All @@ -60,7 +60,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#assert_includes
#
# collection.must_include obj
# _(collection).must_include obj
#
# :method: must_include

Expand All @@ -69,7 +69,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#assert_instance_of
#
# obj.must_be_instance_of klass
# _(obj).must_be_instance_of klass
#
# :method: must_be_instance_of

Expand All @@ -78,7 +78,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#assert_kind_of
#
# obj.must_be_kind_of mod
# _(obj).must_be_kind_of mod
#
# :method: must_be_kind_of

Expand All @@ -87,7 +87,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#assert_match
#
# a.must_match b
# _(a).must_match b
#
# :method: must_match

Expand All @@ -96,7 +96,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#assert_nil
#
# obj.must_be_nil
# _(obj).must_be_nil
#
# :method: must_be_nil

Expand All @@ -105,11 +105,11 @@ module Minitest::Expectations
##
# See Minitest::Assertions#assert_operator
#
# n.must_be :<=, 42
# _(n).must_be :<=, 42
#
# This can also do predicates:
#
# str.must_be :empty?
# _(str).must_be :empty?
#
# :method: must_be

Expand All @@ -118,7 +118,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#assert_output
#
# proc { ... }.must_output out_or_nil [, err]
# _ { ... }.must_output out_or_nil [, err]
#
# :method: must_output

Expand All @@ -127,7 +127,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#assert_raises
#
# proc { ... }.must_raise exception
# _ { ... }.must_raise exception
#
# :method: must_raise

Expand All @@ -136,7 +136,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#assert_respond_to
#
# obj.must_respond_to msg
# _(obj).must_respond_to msg
#
# :method: must_respond_to

Expand All @@ -145,7 +145,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#assert_same
#
# a.must_be_same_as b
# _(a).must_be_same_as b
#
# :method: must_be_same_as

Expand All @@ -154,7 +154,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#assert_silent
#
# proc { ... }.must_be_silent
# _ { ... }.must_be_silent
#
# :method: must_be_silent

Expand All @@ -163,7 +163,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#assert_throws
#
# proc { ... }.must_throw sym
# _ { ... }.must_throw sym
#
# :method: must_throw

Expand All @@ -190,7 +190,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#refute_empty
#
# collection.wont_be_empty
# _(collection).wont_be_empty
#
# :method: wont_be_empty

Expand All @@ -199,7 +199,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#refute_equal
#
# a.wont_equal b
# _(a).wont_equal b
#
# :method: wont_equal

Expand All @@ -208,7 +208,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#refute_in_delta
#
# n.wont_be_close_to m [, delta]
# _(n).wont_be_close_to m [, delta]
#
# :method: wont_be_close_to

Expand All @@ -219,7 +219,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#refute_in_epsilon
#
# n.wont_be_within_epsilon m [, epsilon]
# _(n).wont_be_within_epsilon m [, epsilon]
#
# :method: wont_be_within_epsilon

Expand All @@ -228,7 +228,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#refute_includes
#
# collection.wont_include obj
# _(collection).wont_include obj
#
# :method: wont_include

Expand All @@ -237,7 +237,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#refute_instance_of
#
# obj.wont_be_instance_of klass
# _(obj).wont_be_instance_of klass
#
# :method: wont_be_instance_of

Expand All @@ -246,7 +246,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#refute_kind_of
#
# obj.wont_be_kind_of mod
# _(obj).wont_be_kind_of mod
#
# :method: wont_be_kind_of

Expand All @@ -255,7 +255,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#refute_match
#
# a.wont_match b
# _(a).wont_match b
#
# :method: wont_match

Expand All @@ -264,7 +264,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#refute_nil
#
# obj.wont_be_nil
# _(obj).wont_be_nil
#
# :method: wont_be_nil

Expand All @@ -273,7 +273,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#refute_operator
#
# n.wont_be :<=, 42
# _(n).wont_be :<=, 42
#
# This can also do predicates:
#
Expand All @@ -286,7 +286,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#refute_respond_to
#
# obj.wont_respond_to msg
# _(obj).wont_respond_to msg
#
# :method: wont_respond_to

Expand All @@ -295,7 +295,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#refute_same
#
# a.wont_be_same_as b
# _(a).wont_be_same_as b
#
# :method: wont_be_same_as

Expand Down

0 comments on commit 7b01f94

Please sign in to comment.