Sha256: 19d23c82fdd5ad5edc455c0156f000cd6076e93c51046f45c53edef1d65b27dd
Contents?: true
Size: 403 Bytes
Versions: 28
Compression:
Stored size: 403 Bytes
Contents
require 'test/unit' require 'promise/v2' class TestPromiseValue < Test::Unit::TestCase def test_resolves_the_promise_with_the_given_value assert_equal(PromiseV2.value(23).value, 23) end def test_marks_the_promise_as_realized assert_equal(PromiseV2.value(23).realized?, true) end def test_marks_the_promise_as_resolved assert_equal(PromiseV2.value(23).resolved?, true) end end
Version data entries
28 entries across 28 versions & 1 rubygems