Module: MiniTest::Expectations

Included in:
Object
Defined in:
lib/minitest/spec.rb

Instance Method Summary collapse

Instance Method Details

#assert_emptyObject

See MiniTest::Assertions#assert_empty.

collection.must_be_empty

:method: must_be_empty



256
# File 'lib/minitest/spec.rb', line 256

infect_an_assertion :assert_empty, :must_be_empty

#assert_equalObject

See MiniTest::Assertions#assert_equal

a.must_equal b

:method: must_equal



265
# File 'lib/minitest/spec.rb', line 265

infect_an_assertion :assert_equal, :must_equal

#assert_in_deltaObject

See MiniTest::Assertions#assert_in_delta

n.must_be_close_to m [, delta]

:method: must_be_within_delta



274
# File 'lib/minitest/spec.rb', line 274

infect_an_assertion :assert_in_delta, :must_be_close_to

#assert_in_epsilonObject

See MiniTest::Assertions#assert_in_epsilon

n.must_be_within_epsilon m [, epsilon]

:method: must_be_within_epsilon



285
# File 'lib/minitest/spec.rb', line 285

infect_an_assertion :assert_in_epsilon, :must_be_within_epsilon

#assert_includesObject

See MiniTest::Assertions#assert_includes

collection.must_include obj

:method: must_include



294
# File 'lib/minitest/spec.rb', line 294

infect_an_assertion :assert_includes, :must_include, :reverse

#assert_instance_ofObject

See MiniTest::Assertions#assert_instance_of

obj.must_be_instance_of klass

:method: must_be_instance_of



303
# File 'lib/minitest/spec.rb', line 303

infect_an_assertion :assert_instance_of, :must_be_instance_of

#assert_kind_ofObject

See MiniTest::Assertions#assert_kind_of

obj.must_be_kind_of mod

:method: must_be_kind_of



312
# File 'lib/minitest/spec.rb', line 312

infect_an_assertion :assert_kind_of, :must_be_kind_of

#assert_matchObject

See MiniTest::Assertions#assert_match

a.must_match b

:method: must_match



321
# File 'lib/minitest/spec.rb', line 321

infect_an_assertion :assert_match, :must_match

#assert_nilObject

See MiniTest::Assertions#assert_nil

obj.must_be_nil

:method: must_be_nil



330
# File 'lib/minitest/spec.rb', line 330

infect_an_assertion :assert_nil, :must_be_nil

#assert_operatorObject

See MiniTest::Assertions#assert_operator

n.must_be :<=, 42

:method: must_be



339
# File 'lib/minitest/spec.rb', line 339

infect_an_assertion :assert_operator, :must_be

#assert_outputObject

See MiniTest::Assertions#assert_output

proc { ... }.must_output out_or_nil [, err]

:method: must_output



348
# File 'lib/minitest/spec.rb', line 348

infect_an_assertion :assert_output, :must_output

#assert_raisesObject

See MiniTest::Assertions#assert_raises

proc { ... }.must_raise exception

:method: must_raise



357
# File 'lib/minitest/spec.rb', line 357

infect_an_assertion :assert_raises, :must_raise

#assert_respond_toObject

See MiniTest::Assertions#assert_respond_to

obj.must_respond_to msg

:method: must_respond_to



366
# File 'lib/minitest/spec.rb', line 366

infect_an_assertion :assert_respond_to, :must_respond_to, :reverse

#assert_sameObject

See MiniTest::Assertions#assert_same

a.must_be_same_as b

:method: must_be_same_as



375
# File 'lib/minitest/spec.rb', line 375

infect_an_assertion :assert_same, :must_be_same_as

#assert_sendObject

See MiniTest::Assertions#assert_send TODO: remove me

a.must_send

:method: must_send



385
# File 'lib/minitest/spec.rb', line 385

infect_an_assertion :assert_send, :must_send

#assert_silentObject

See MiniTest::Assertions#assert_silent

proc { ... }.must_be_silent

:method: must_be_silent



394
# File 'lib/minitest/spec.rb', line 394

infect_an_assertion :assert_silent, :must_be_silent

#assert_throwsObject

See MiniTest::Assertions#assert_throws

proc { ... }.must_throw sym

:method: must_throw



403
# File 'lib/minitest/spec.rb', line 403

infect_an_assertion :assert_throws, :must_throw

#refute_emptyObject

See MiniTest::Assertions#refute_empty

collection.wont_be_empty

:method: wont_be_empty



412
# File 'lib/minitest/spec.rb', line 412

infect_an_assertion :refute_empty, :wont_be_empty

#refute_equalObject

See MiniTest::Assertions#refute_equal

a.wont_equal b

:method: wont_equal



421
# File 'lib/minitest/spec.rb', line 421

infect_an_assertion :refute_equal, :wont_equal

#refute_in_deltaObject

See MiniTest::Assertions#refute_in_delta

n.wont_be_close_to m [, delta]

:method: wont_be_within_delta



430
# File 'lib/minitest/spec.rb', line 430

infect_an_assertion :refute_in_delta, :wont_be_within_delta

#refute_in_epsilonObject

See MiniTest::Assertions#refute_in_epsilon

n.wont_be_within_epsilon m [, epsilon]

:method: wont_be_within_epsilon



442
# File 'lib/minitest/spec.rb', line 442

infect_an_assertion :refute_in_epsilon, :wont_be_within_epsilon

#refute_includesObject

See MiniTest::Assertions#refute_includes

collection.wont_include obj

:method: wont_include



451
# File 'lib/minitest/spec.rb', line 451

infect_an_assertion :refute_includes, :wont_include, :reverse

#refute_instance_ofObject

See MiniTest::Assertions#refute_instance_of

obj.wont_be_instance_of klass

:method: wont_be_instance_of



460
# File 'lib/minitest/spec.rb', line 460

infect_an_assertion :refute_instance_of, :wont_be_instance_of

#refute_kind_ofObject

See MiniTest::Assertions#refute_kind_of

obj.wont_be_kind_of mod

:method: wont_be_kind_of



469
# File 'lib/minitest/spec.rb', line 469

infect_an_assertion :refute_kind_of, :wont_be_kind_of

#refute_matchObject

See MiniTest::Assertions#refute_match

a.wont_match b

:method: wont_match



478
# File 'lib/minitest/spec.rb', line 478

infect_an_assertion :refute_match, :wont_match

#refute_nilObject

See MiniTest::Assertions#refute_nil

obj.wont_be_nil

:method: wont_be_nil



487
# File 'lib/minitest/spec.rb', line 487

infect_an_assertion :refute_nil, :wont_be_nil

#refute_operatorObject

See MiniTest::Assertions#refute_operator

n.wont_be :<=, 42

:method: wont_be



496
# File 'lib/minitest/spec.rb', line 496

infect_an_assertion :refute_operator, :wont_be

#refute_respond_toObject

See MiniTest::Assertions#refute_respond_to

obj.wont_respond_to msg

:method: wont_respond_to



505
# File 'lib/minitest/spec.rb', line 505

infect_an_assertion :refute_respond_to, :wont_respond_to, :reverse

#refute_sameObject

See MiniTest::Assertions#refute_same

a.wont_be_same_as b

:method: wont_be_same_as



514
# File 'lib/minitest/spec.rb', line 514

infect_an_assertion :refute_same, :wont_be_same_as