Sha256: e8d59a610acd52c4c0abb4bbb7d8964346d74bb4087033e4b430b020df4b94bc
Contents?: true
Size: 862 Bytes
Versions: 3
Compression:
Stored size: 862 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::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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
riot-0.12.1 | test/core/context/using_describe_in_a_test.rb |
riot-0.12.0 | test/core/context/using_describe_in_a_test.rb |
riot-0.12.0.pre | test/core/context/using_describe_in_a_test.rb |