Skip to content

Commit

Permalink
Ensure that the cucumber environment has its own database (problem sp…
Browse files Browse the repository at this point in the history
…otted by awagener)
  • Loading branch information
parndt committed Jun 29, 2010
1 parent d4c9fa4 commit 2a09915
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions bin/refinery
Expand Up @@ -41,6 +41,7 @@ unless (app_path = ARGV.shift).nil? or app_path.length == 0
lines.each do |line|
line.gsub!("your_local_#{config}", "#{app_name}_development")
line.gsub!("your_test_#{config}", "#{app_name}_test")
line.gsub!("your_cucumber_#{config}", "#{app_name}_cucumber")
line.gsub!("your_production_#{config}", "#{app_name}_production")
end
# write the new content into the file.
Expand Down
7 changes: 4 additions & 3 deletions config/database.yml.example
Expand Up @@ -4,18 +4,19 @@ login: &login
username: root
password: root

development:
development: &development
database: your_local_database
<<: *login

test: &test
database: your_test_database
<<: *login

cucumber:
cucumber: &cucumber
database: your_cucumber_database
<<: *test

production:
production: &production
database: your_production_database
adapter: mysql
host: localhost
Expand Down

0 comments on commit 2a09915

Please sign in to comment.