Sha256: 3c712045361e0f0027e8debf087342b993204d216a8a23a3e6485d52c0d03f7c

Contents?: true

Size: 815 Bytes

Versions: 59

Compression:

Stored size: 815 Bytes

Contents

# <!-- rdoc-file=lib/minitest/expectations.rb -->
# It's where you hide your "assertions".
#
# Please note, because of the way that expectations are implemented, all
# expectations (eg must_equal) are dependent upon a thread local variable
# `:current_spec`. If your specs rely on mixing threads into the specs
# themselves, you're better off using assertions or the new _(value) wrapper.
# For example:
#
#     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_raise TypeError  # good
#       end
#     end
#
module Minitest::Expectations
end

Version data entries

59 entries across 59 versions & 3 rubygems

Version Path
rbs-3.8.1 stdlib/minitest/0/minitest/expectations.rbs
rbs-3.8.0 stdlib/minitest/0/minitest/expectations.rbs
rbs-3.8.0.pre.1 stdlib/minitest/0/minitest/expectations.rbs
rbs-3.7.0.pre.1 stdlib/minitest/0/minitest/expectations.rbs
rbs-3.7.0.dev.1 stdlib/minitest/0/minitest/expectations.rbs
rbs-3.6.1 stdlib/minitest/0/minitest/expectations.rbs
rbs-3.6.0 stdlib/minitest/0/minitest/expectations.rbs
rbs-3.6.0.pre.3 stdlib/minitest/0/minitest/expectations.rbs
rbs-3.6.0.pre.2 stdlib/minitest/0/minitest/expectations.rbs
rbs-3.6.0.pre.1 stdlib/minitest/0/minitest/expectations.rbs
rbs-3.6.0.dev.1 stdlib/minitest/0/minitest/expectations.rbs
rbs-3.5.3 stdlib/minitest/0/minitest/expectations.rbs
rbs-3.5.2 stdlib/minitest/0/minitest/expectations.rbs
rbs-3.5.1 stdlib/minitest/0/minitest/expectations.rbs
rbs-3.5.1.pre.1 stdlib/minitest/0/minitest/expectations.rbs
rbs-3.5.0 stdlib/minitest/0/minitest/expectations.rbs
rbs-3.5.0.pre.2 stdlib/minitest/0/minitest/expectations.rbs
rbs-3.5.0.pre.1 stdlib/minitest/0/minitest/expectations.rbs
rbs-3.4.4 stdlib/minitest/0/minitest/expectations.rbs
rbs-3.4.3 stdlib/minitest/0/minitest/expectations.rbs