Permalink
Browse files

move migration to before the script runs

  • Loading branch information...
1 parent 448ed35 commit d740055ffb984b4d5371a5b15afc6c3befc59e9b @mjankowski mjankowski committed Apr 2, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −0 .travis.yml
  2. +2 −0 SetupRakefile
  3. +0 −3 spec/spec_helper.rb
View
1 .travis.yml
@@ -18,3 +18,4 @@ gemfile:
before_script:
- "mysql -e 'create database pacecar_test;' >/dev/null"
- "psql -c 'create database pacecar_test;' -U postgres >/dev/null"
+ - "RAILS_ENV=test bundle exec rake -f SetupRakefile db:migrate"
View
2 SetupRakefile
@@ -0,0 +1,2 @@
+import 'Rakefile'
+import 'spec/dummy/Rakefile'
View
3 spec/spec_helper.rb
@@ -16,9 +16,6 @@
Capybara.default_driver = :rack_test
Capybara.default_selector = :css
-# Run any available migration
-ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
-
# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

0 comments on commit d740055

Please sign in to comment.