[rspec-users] Expectation ordering
Ashley Moran
ashley.moran at patchspace.co.uk
Tue Oct 7 12:15:57 EDT 2008
On 7 Oct 2008, at 15:55, David Chelimsky wrote:
> Is the block no longer being executed? If so, then we have a problem
> :) Please report this at http://rspec.lighthouseapp.com.
Bizarrely, my little test...
require 'spec'
describe "Blocks" do
it "should be called" do
b = mock(Object)
b.should_receive(:this) do
b.should_receive(:that)
end
b.that
b.this
end
end
Works as expected (the above fails)
I'll have to investigate further...
Ashley
--
http://www.patchspace.co.uk/
http://aviewfromafar.net/
More information about the rspec-users
mailing list