Sha256: 6f58b4e2cfbaf33beb9b2112a86fb13f0b65b5fc88df530294929215b5b9f232
Contents?: true
Size: 437 Bytes
Versions: 10
Compression:
Stored size: 437 Bytes
Contents
require 'teststrap' context "nil assertion:" do setup { Riot::Situation.new } asserts("result has a value") do Riot::Assertion.new("foo", topic) { "foo" }.exists end asserts("empty string is considered a value") do Riot::Assertion.new("foo", topic) { "" }.exists end should "raise a Failure if value is nil" do Riot::Assertion.new("foo", topic) { nil }.exists end.kind_of(Riot::Failure) end # nil assertion
Version data entries
10 entries across 10 versions & 1 rubygems