I must be missing something fundamental. In the test code below, the
assertion should fail unless WebPageCache.count == 1. But
WebPageCache.count is zero (according to the print statement and all
other evidence), yet the assertion passes.
What am I missing?
=====
class WebPageCacheTest < ActiveSupport::TestCase
...
test "table has one entry" do
p "<<< #{WebPageCache.count}" # prints '<<< 0'
assert (WebPageCache.count == 1), "WebPageCache size is not 1"
end
...
end
=====
(An aside: if I can't trust a simple assert, what CAN I trust? :)
- ff
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.