开发者

changing the db used with cucumber to the _test db instead of _development

For whatever reason, my cucumber is using my _development db instead of my _test db.

How do I change that?

This is what my database.yml says

test: &test
  adapter: mysql
  encoding: utf8
  data开发者_开发知识库base: myapp_test

but i get the error database configuration does not specify adapter

This is also at the bottom.... I can only assume that this is SUPPOSSED to set it to use the test db

cucumber: &CUCUMBER
  <<: *test
culerity:
  <<: *CUCUMBER

but, alas, the test db is never touched


Do you have something like:

ENV["RAILS_ENV"] ||= 'test'

in your features/support/env.rb file?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜