链接 https://relishapp.com/rspec/rspec-expectations/v/3-4/docs/custom-matchers/define-a-custom-matcher#define-aliases-for-your-matcher require 'rspec/expectations' class String def words split('') end end RSpec::Matchers.define :have_5_words do match d…
引用链接:http://reverocean.iteye.com/blog/1489957 1. describe和context describe和context方法用来组织相关的行为example. 使用一个字符串作为他们的参数,以及使用一个block来定义其上下文的范围. 写model的spec或者其他的unit test时,可以传一个Ruby类作为describe的第一个参数.Doing so also creates an implicit subject for the exampl…
A curated list of awesome Go frameworks, libraries and software. Inspired by awesome-python. Contributing Please take a quick gander at the contribution guidelines first. Thanks to all contributors; you rock! If you see a package or project here that…