以下のようなことがしたいときに使う。
it { 1.should greater_than 0 }
RSpec::Matchers::define
を利用する。
RSpec::Matchers.define :greater_than do |expected|
match {|actual| actual > expected }
end
see: https://www.relishapp.com/rspec/rspec-expectations/v/2-12/docs/custom-matchers/define-matcher