RubyGems Navigation menu

cosine-quacks-like 1.0.0

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.

Gemfile:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 1.0.0 - August 11, 2014 (5.0 KB)

作者:

  • Michael H Buselli

SHA 256 校验和:

47fe1450c20cdc976c06740b1f15165b3bcb2ecc3b2dbfa2a0749c568f31ab4f

下载总量 3,538

这个版本 3,538

许可:

需要的 Ruby 版本: >= 0

链接: