Skip to content
Permalink
Browse files

- Fixed expectation doco to not use global expectations.

[git-p4: depot-paths = "//src/minitest/dev/": change = 12549]
  • Loading branch information
zenspider committed Feb 11, 2020
1 parent d611604 commit 7b01f9468644bae0c6c88fc7abe1103270f10f40
Showing with 29 additions and 29 deletions.
  1. +29 −29 lib/minitest/expectations.rb
@@ -22,7 +22,7 @@ module Minitest::Expectations
##
# See Minitest::Assertions#assert_empty.
#
# collection.must_be_empty
# _(collection).must_be_empty
#
# :method: must_be_empty

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

@@ -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

@@ -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

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

@@ -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

@@ -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

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

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

@@ -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

@@ -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

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

@@ -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

@@ -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

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

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

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

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

@@ -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

@@ -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

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

@@ -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

@@ -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

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

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

@@ -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:
#
@@ -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

@@ -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

0 comments on commit 7b01f94

Please sign in to comment.
You can’t perform that action at this time.