Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple DB support leads to undefined method #17

Closed
ak47 opened this issue Sep 20, 2010 · 3 comments
Closed

multiple DB support leads to undefined method #17

ak47 opened this issue Sep 20, 2010 · 3 comments

Comments

@ak47
Copy link

ak47 commented Sep 20, 2010

I have in my cuke env.rb...

DatabaseCleaner[:active_record, {:connection => :test}].strategy = :truncation
DatabaseCleaner[:active_record, {:connection => :test_security}].strategy = :truncation

but every time I try to run cucumber it does...

undefined method `[]' for DatabaseCleaner:Module (NoMethodError)
/Users/andy/gits/sdbpg/features/support/env.rb:34

unfortunate as your test cases show this type of code working, am I doing something wrong?

@bmabey
Copy link
Contributor

bmabey commented Sep 21, 2010

Are you using the pre-release gem version?

@ak47
Copy link
Author

ak47 commented Sep 21, 2010

no, I don't think so

hst-26-147 (master)->gem list database_cleaner

*** LOCAL GEMS ***

database_cleaner (0.5.2)

@bmabey
Copy link
Contributor

bmabey commented Sep 21, 2010

Yeah, only the pre-release version has the multi-db support. If you are using bundler point it to version 0.6.0.rc. Other wise do gem install database_cleaner --pre.

It is a pre-release because I'm waiting on feedback on how well it works. So please let me know how it works for you.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants