I am testing my code using the RSpec in Ruby
context '---Users review his last food' do
it 'tried to reviewed without rating' do
expect do
client.review nil
end.to output("Rating points missing!").to_stderr
end
So in this case, client.review nil is aborted with message Rating points missing. It seems like this abort stop also the RSpec tests and doesn't continute with the remaining tests. Is there some way how to abort the application if the wrong parameters is used and tests will continue? Thanks.
Aucun commentaire:
Enregistrer un commentaire