ruby on rails - Alternative for object.should_not_receive(:message) in Rspec -
old code check receive in rspec
object.should_receive(:message) as per new rspec syntex,we can write code check should_recieve
allow(object).to receive(:message) but how check this
allow(object).to_not receive(:message) earlier used check way
object.should_not_receive(:message) # need new syntax latest rspec. i not able find doc
thanks in advance.
you can way
expect(object).not_to receive(:message) ruby-on-rails ruby rspec
No comments:
Post a Comment