Sha256: 61c5d901c5b83bcecf558665f0a14c10d77ba85c86aaa38f3610c29117ce4c1f
Contents?: true
Size: 650 Bytes
Versions: 2
Compression:
Stored size: 650 Bytes
Contents
require 'teststrap' 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::Reporter.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
riot-0.11.4 | test/core/using_describe_in_a_test.rb |
riot-0.11.4.pre | test/core/using_describe_in_a_test.rb |