You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm to new to this framework to figure this out myself just yet, but for some reason the spy api hangs when the target method is never invoked. Fortunately rspec times this out when running the 'spec' command correctly, but when using 'script/spec' in rails it hangs indefinitely - making the spy api unusable.
The following is the failing spec I added to spy_spec.rb (see pull request)
it "should raise error when method isn't invoked" do
subject = Object.new
def subject.something
end
spy(subject)
lambda do
received(subject).something.call
end.should raise_error(RR::Errors::SpyVerificationErrors::SpyVerificationError)
end
Any thoughts?
The text was updated successfully, but these errors were encountered:
I'm to new to this framework to figure this out myself just yet, but for some reason the spy api hangs when the target method is never invoked. Fortunately rspec times this out when running the 'spec' command correctly, but when using 'script/spec' in rails it hangs indefinitely - making the spy api unusable.
The following is the failing spec I added to spy_spec.rb (see pull request)
Any thoughts?
The text was updated successfully, but these errors were encountered: