2014-04-23から1日間の記事一覧
定義 RSpec::Matchers.define :be_bigger_than do |first| match do |actual| (actual > first) && (actual < @second) end chain :but_smaller_than do |second| @second = second end end 実行
定義 RSpec::Matchers.define :be_bigger_than do |first| match do |actual| (actual > first) && (actual < @second) end chain :but_smaller_than do |second| @second = second end end 実行