在我的功能/支持/ env.rb文件的頂部:我的黃瓜測試正在修改開發數據庫。我如何獲得它來修改測試分貝?
ENV["RAILS_ENV"] = 'test'
但測試仍在修改發展分貝.... 即使當我做
rake cucumber:authentication RAILS_ENV=test
它仍然改變dev db
我還需要改變什麼?
的database.yml:使用
development:
adapter: mysql
encoding: utf8
database: app_dev
username: root
password:
test:
adapter: mysql
encoding: utf8
database: app_test
username: root
password:
production:
adapter: mysql
encoding: utf8
database: app_production
username: root
password:
cucumber: &CUCUMBER
adapter: mysql
encoding: utf8
database: app_cuke
username: root
password:
culerity:
<<: *CUCUMBER
:
ruby 1.8.7
rails 2.3.8
and cucumber 1.0.2
我會更新我的問題,證明我不是TAHT retarded = p – NullVoxPopuli