Permalink
Browse files

Use the .up syntax, instead of migrate(:up) since that's not executin…

…g the migrations correctly on rails 3.1.x.
  • Loading branch information...
1 parent 3039333 commit e217b855661dd53bb4c04d8748f421c69ceab265 @cmeiklejohn cmeiklejohn committed Jul 29, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/test_helper.rb
View
@@ -22,7 +22,7 @@ class ActiveSupport::TestCase
PROJECT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
require File.join(PROJECT_ROOT, 'lib', 'generators', 'paul_revere', 'templates', 'migration')
ActiveRecord::Base.establish_connection(
- :adapter => 'sqlite3',
- :database => ':memory:'
+ :adapter => "sqlite3",
+ :database => ":memory:"
)
-CreateAnnouncements.suppress_messages { CreateAnnouncements.migrate(:up) }
+CreateAnnouncements.suppress_messages { CreateAnnouncements.up }

0 comments on commit e217b85

Please sign in to comment.