>
>
> Well, I was trying to go for a nice atomicity in the tests (like some kind
> of database-testing Nirvana!), and the in-memory database might be fast
> enough to allow it, but I'll probably end up with a mix.
>
>
Stick with the real thing. It's worth it. Here's a snippet that clears your
DB before each test.

RSpec.configure do |config|
  config.before(:each) do
    db = Sequel::Model.db
    db.tables.each do |table|
      db[table].delete
    end
  end
end


-- 
Peter van Hardenberg
San Francisco, California
"Everything was beautiful, and nothing hurt." -- Kurt Vonnegut

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-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/sequel-talk?hl=en.

Reply via email to