Sha256: 13a82ae88ae36bf170ede1f8a6fbc500c1304e47604757be73033011db02dd00
Contents?: true
Size: 868 Bytes
Versions: 6
Compression:
Stored size: 868 Bytes
Contents
require 'teststrap' context "The describe alias" do setup do Riot::Context.new("Foo") {} end asserts("any ol' object") { Object.new }.responds_to(:describe) asserts_topic.responds_to :describe end # The describe alias describe "This describe context" do setup { "another thing is my" } asserts_topic.kind_of(String) end # This describe context context "Using a describe sub-context" do setup do Riot::Context.new("Foo") do describe "using describe" do setup { "another thing is my" } asserts_topic.kind_of(String) end end.run(Riot::SilentReporter.new) end asserts("current context description") do topic.current_context.detailed_description end.equals("Foo using describe") asserts(:passes).equals(1) asserts(:failures).equals(0) asserts(:errors).equals(0) end # Using a describe sub-context
Version data entries
6 entries across 6 versions & 1 rubygems