Module: Quacky::MiniTest::Matchers

Defined in:
lib/quacky/minitest_setup.rb

Instance Method Summary collapse

Instance Method Details

#assert_quacks_like(object, *modules) ⇒ Object



5
6
7
8
9
# File 'lib/quacky/minitest_setup.rb', line 5

def assert_quacks_like object, *modules
  modules.each do |a_module|
    Quacky::DuckTypeVerifier.new(a_module).verify! object
  end
end