Sha256: ceaeeec7f038e34eb8fc09a22285a027390256948772e1537fcd929f6be70528
Contents?: true
Size: 813 Bytes
Versions: 1
Compression:
Stored size: 813 Bytes
Contents
require 'teststrap' context "An AssertionMacro instance" do setup { Riot::AssertionMacro.new } asserts_topic.responds_to(:new_message) asserts_topic.responds_to(:expected_message) asserts_topic.responds_to(:should_have_message) context "receiving #new_message" do setup { topic.new_message("hope") } asserts_topic.kind_of(Riot::Message) asserts(:to_s).equals(%q["hope"]) end context "receiving #should_have_message" do setup { topic.should_have_message("hope") } asserts_topic.kind_of(Riot::Message) asserts(:to_s).equals(%q[should have "hope"]) end context "receiving #expected_message" do setup { topic.expected_message("hope") } asserts_topic.kind_of(Riot::Message) asserts(:to_s).equals(%q[expected "hope"]) end end # An AssertionMacro instance
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
riot-0.10.12.pre | test/assertion_macro_test.rb |