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

Version Path
riot-0.12.7 test/core/context/should_test.rb
riot-0.12.6 test/core/context/should_test.rb
riot-0.12.5 test/core/context/should_test.rb
riot-0.12.4 test/core/context/should_test.rb
riot-0.12.3 test/core/context/should_test.rb
riot-0.12.2 test/core/context/should_test.rb
riot-0.12.1 test/core/context/should_test.rb
riot-0.12.0 test/core/context/should_test.rb
riot-0.12.0.pre test/core/context/should_test.rb