Categories: None [Edit]

quacks-like

https://rubygems.org/gems/quacks-like
QuacksLike is a module for RSpec to add matchers that test if an object is fully duck-typed to pretend to be another class. This kind of thing is really only necessary when passing such an object as the return value in an API where you don't know exactly how it will be consumed, but it needs to "quack like an Array" or something. It does its job by checking every instance method in the class that the target object needs to "quack like" and makes sure the target both responds to that method name and that the arity of the method is appropriate.

Total

Ranking: 126,027 of 180,671
Downloads: 4,378

Daily

Ranking: 113,030 of 180,660
Downloads: 1

Depended by

RankDownloadsName

Depends on

RankDownloadsName

Owners

#GravatarHandle
1iconcosine