Ashley
unread,Mar 23, 2012, 7:38:15 PM3/23/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to database_cleaner
Caveat: My first go round with DatabaseCleaner, in fact fair new to
BDD using Cucumber in general.
It appears the Mongo_Mapperonly has support for the truncation
strategy.
Our Rails Model uses MongoMapper, and our app in general is a Rails
Server with a Coffee-Script component that push javascript to a
browser extension.
Currently I'm having that terrible unsolved error:
ActiveRecord::ConnectionNotEstablished
(ActiveRecord::ConnectionNotEstablished)
driven by: ../cucumber-rails-1.3.0/lib/cucumber/rails/hooks/
database_cleaner.rb:9:in `After'
I'm sure it's because DatabaseCleaner is trying to execute it's
strategy via ActiveRecord ORM, even though I've specified mongomapper
as the strategy. I'd be fine with just using truncation, but we need
transaction in other locations (the web client side / selenium driven
test).
I guess my question is: Why is there no transaction strategy support
for MongoMapper, and if it needs developing, where would I start?