method
duck_type
1.1.12 -
Show latest stable
-
0 notes -
Class: Spec::Mocks::ArgumentConstraints
- 1.1.4
- 1.1.12 (0)
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- 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