On 12/13/2010 03:22 PM, Luis Lavena wrote:
On Mon, Dec 13, 2010 at 1:13 PM, Earle Clubb<[email protected]> wrote:
I'm trying to use Cucumber with dm-rails. The app is working, but
whenever I run `rake cucumber` I get an error: "Don't know how to
build task 'db:test:prepare'". I noticed that this task was removed
from dm-rails in commit 376cb66. What's the best way to fix/work
around this error?
You can define your own db:test:prepare task:
namespace :db do
namespace :test do
task :prepare do
# do the db preparation here for DataMapper
end
end
end
Thanks, Luis. That's what I ended up doing. I defined db:test:prepare as a noop. The transactions for cucumber are
handled in Before and After blocks per the dm-rails readme.
Earle
--
You received this message because you are subscribed to the Google Groups
"DataMapper" 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/datamapper?hl=en.