Exclamation mark used with assert method in its parameters.
Posted
by Maxsy
on Stack Overflow
See other posts from Stack Overflow
or by Maxsy
Published on 2010-03-08T19:47:38Z
Indexed on
2010/03/08
19:51 UTC
Read the original article
Hit count: 316
Okay this has been lingering in my head for quite a while now. In ruby on rails unit testing there is an exclamation mark with the assert method. Here is an example
test "No empty values to be inserted" do
product = Produce.new
assert !product.save
end
Let me know the function of the exclamation mark. Quick replies appreciated. Thanks.
© Stack Overflow or respective owner