Sha256: cc0db40ce464fd82967fbf38152cedb8905e6260e11758dda86da14fbda68d6e
Contents?: true
Size: 396 Bytes
Versions: 2
Compression:
Stored size: 396 Bytes
Contents
require 'teststrap' context "A respond_to assertion macro" do setup { Riot::Assertion.new("foo") { "bar" } } assertion_test_passes("when method is defined", "responds to :each_byte") { topic.respond_to(:each_byte) } assertion_test_fails("when method not defined", "expected method :goofballs is not defined") do topic.respond_to(:goofballs) end end # A respond_to assertion macro
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
riot-0.10.11 | test/assertion_macros/respond_to_test.rb |
riot-0.10.10 | test/assertion_macros/respond_to_test.rb |