Module: MiniTest::Expectations

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

Overview

It's where you hide your "assertions".

Instance Method Summary collapse

Instance Method Details

#assert_callback_afterObject

See MiniTest::Assertions#assert_callback_after

config.must_have_callback_after :reload, :log_event

:method: must_have_callback_after



123
# File 'lib/minitest/expectations.rb', line 123

infect_an_assertion :assert_callback_after, :must_have_callback_after, true

#assert_callback_beforeObject

See MiniTest::Assertions#assert_callback_before

config.must_have_callback_before :stop, :warn_people

:method: must_have_callback_before



105
# File 'lib/minitest/expectations.rb', line 105

infect_an_assertion :assert_callback_before, :must_have_callback_before, true

#assert_have_capturedObject

See MiniTest::Assertions#assert_have_captured

config.must_have_captured cmd

:method: must_have_captured



51
# File 'lib/minitest/expectations.rb', line 51

infect_an_assertion :assert_have_captured, :must_have_captured

#assert_have_putObject

See MiniTest::Assertions#assert_have_put

config.must_have_put path, data

:method: must_have_put



87
# File 'lib/minitest/expectations.rb', line 87

infect_an_assertion :assert_have_put, :must_have_put

#assert_have_runObject

See MiniTest::Assertions#assert_have_run

config.must_have_run cmd

:method: must_have_run



15
# File 'lib/minitest/expectations.rb', line 15

infect_an_assertion :assert_have_run, :must_have_run

#assert_have_run_somethingObject

See MiniTest::Assertions#assert_have_run_something

config.must_have_run_something

:method: must_have_run_something



33
# File 'lib/minitest/expectations.rb', line 33

infect_an_assertion :assert_have_run_something, :must_have_run_something, true

#assert_have_streamedObject

See MiniTest::Assertions#assert_have_streamd

config.must_have_streamed cmd

:method: must_have_streamed



69
# File 'lib/minitest/expectations.rb', line 69

infect_an_assertion :assert_have_streamed, :must_have_streamed

#assert_have_taskObject

See MiniTest::Assertions#assert_have_task

config.must_have_task "deploy:restart"

:method: must_have_task



141
# File 'lib/minitest/expectations.rb', line 141

infect_an_assertion :assert_have_task, :must_have_task

#refute_callback_afterObject

See MiniTest::Assertions#refute_callback_after

config.wont_have_callback_after :stop, :do_taxes

:method: wont_have_callback_after



132
# File 'lib/minitest/expectations.rb', line 132

infect_an_assertion :refute_callback_after, :wont_have_callback_after, true

#refute_callback_beforeObject

See MiniTest::Assertions#refute_callback_before

config.wont_have_callback_before :stop, :begin_long_job

:method: wont_have_callback_before



114
# File 'lib/minitest/expectations.rb', line 114

infect_an_assertion :refute_callback_before, :wont_have_callback_before, true

#refute_have_capturedObject

See MiniTest::Assertions#refute_have_captured

config.wont_have_captured cmd

:method: wont_have_captured



60
# File 'lib/minitest/expectations.rb', line 60

infect_an_assertion :refute_have_captured, :wont_have_captured

#refute_have_putObject

See MiniTest::Assertions#refute_have_put

config.wont_have_put path, data

:method: wont_have_put



96
# File 'lib/minitest/expectations.rb', line 96

infect_an_assertion :refute_have_put, :wont_have_put

#refute_have_runObject

See MiniTest::Assertions#refute_have_run

config.wont_have_run cmd

:method: wont_have_run



24
# File 'lib/minitest/expectations.rb', line 24

infect_an_assertion :refute_have_run, :wont_have_run

#refute_have_run_somethingObject

See MiniTest::Assertions#refute_have_run_something

config.wont_have_run_anything

:method: wont_have_run_anything



42
# File 'lib/minitest/expectations.rb', line 42

infect_an_assertion :refute_have_run_something, :wont_have_run_anything, true

#refute_have_streamedObject

See MiniTest::Assertions#refute_have_streamed

config.wont_have_streamed cmd

:method: wont_have_streamed



78
# File 'lib/minitest/expectations.rb', line 78

infect_an_assertion :refute_have_streamed, :wont_have_streamed

#refute_have_taskObject

See MiniTest::Assertions#refute_have_task

config.wont_have_task "nothing:here"

:method: wont_have_task



150
# File 'lib/minitest/expectations.rb', line 150

infect_an_assertion :refute_have_task, :wont_have_task