Re: [rspec-users] Fuzzy should_receive matching

2013-05-30 Thread David Chelimsky
On Thu, May 30, 2013 at 2:44 AM, Alexander Baronec wrote: > Hello. > I have a test problem when I should test arguments in method not by exact > matching buy with fuzzy matching. > > For example I have this test: > > require 'rspec' > > describe do > it do > o = Object.new > o.should_re

[rspec-users] Fuzzy should_receive matching

2013-05-30 Thread Alexander Baronec
Hello. I have a test problem when I should test arguments in method not by exact matching buy with fuzzy matching. For example I have this test: require 'rspec' describe do it do o = Object.new o.should_receive(:api_send).with mode: :say o.api_send mode: :say, time: Time.now + ran