Greg Donald wrote:
> Did you try WebPageCache.count.to_i == 1 or WebPageCache.count == '1' ?

For grins, yes.  No change.

But I'm beginning to guess: are the db tables rolled back between EVERY 
call to test?  I thought they were rolled back at the end of the test 
run, not between every test.

Asked another way: if web_page_caches starts as empty, what are the 
expected results in the following?

======
class WebPageCacheTest < ActiveSupport::TestCase
  test "store an entry" do
    WebPageCache.store("my_key", "my_value")
    assert (WebPageCache.count == 1), "WebPageCache size is not 1"

  test "table still has one entry" do
    assert (WebPageCache.count == 1), "WebPageCache size is not 1"
  end
end
======
-- 
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.

Reply via email to