Sha256: b8a14abcb8227670f8228d92585b6992422e66a54968ef1c67b736c58d627210

Contents?: true

Size: 451 Bytes

Versions: 6

Compression:

Stored size: 451 Bytes

Contents

require 'teststrap'

context "respond to" do
  setup do
    Riot::Situation.new
  end

  should "pass when object responds to expected method" do
    Riot::Assertion.new("foo", topic) { "foo" }.respond_to(:each_byte)
  end

  should "fail when object does not respond to expected method" do
    Riot::Assertion.new("foo", topic) { "foo" }.respond_to(:goofballs).message
  end.equals("foo: expected method :goofballs is not defined")

end # respond to

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
riot-0.9.12 test/assertion_macros/assertion_macro_respond_to_test.rb
riot-0.9.11 test/assertion_macros/assertion_macro_respond_to_test.rb
riot-0.9.10 test/assertion_macros/assertion_macro_respond_to_test.rb
riot-0.9.9 test/assertion_macros/assertion_macro_respond_to_test.rb
riot-0.9.8 test/assertion_macros/assertion_macro_respond_to_test.rb
riot-0.9.7 test/assertion_macros/assertion_macro_respond_to_test.rb