Sha256: ed19136ad789517c3d791db0af4f3bfe311c4b9b8ea27a6ff79d1ac14ac11001
Contents?: true
Size: 435 Bytes
Versions: 9
Compression:
Stored size: 435 Bytes
Contents
require 'teststrap' context "Using should" do setup do a_context = Riot::Context.new("foobar") do should("pass") { true } should("fail") { false } should("error") { raise Exception } end a_context.run(MockReporter.new) end asserts("one passed test") { topic.passes == 1 } asserts("one failed test") { topic.failures == 1 } asserts("one errored test") { topic.errors == 1 } end # Using should
Version data entries
9 entries across 9 versions & 1 rubygems