method
duck_type

1.3.1 -
Show latest stable
-
0 notes -
Class: Spec::Mocks::ArgumentMatchers
- 1.1.4
- 1.1.12
- 1.2.0 (0)
- 1.2.8 (0)
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
duck_type(*args)
public
Passes if the argument responds to the specified messages.
Examples
array = [] display = mock('display') display.should_receive(:present_names).with(duck_type(:length, :each)) => passes