diff options
author | Stefan Sprenger <stefan.sprenger@dkd.de> | 2011-06-07 14:07:32 +0200 |
---|---|---|
committer | Stefan Sprenger <stefan.sprenger@dkd.de> | 2011-06-07 14:07:32 +0200 |
commit | 331d58fb04821546b1e622290432a2dd13e52301 (patch) | |
tree | 76435c6413a91840209879ed35739ea6a72dde62 /railties/test | |
parent | 246c36757065aa74a88b67db4c70e9e5cf3bd8b3 (diff) | |
download | rails-331d58fb04821546b1e622290432a2dd13e52301.tar.gz rails-331d58fb04821546b1e622290432a2dd13e52301.tar.bz2 rails-331d58fb04821546b1e622290432a2dd13e52301.zip |
Prepend bundle exec to get the correct Rake version
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/railties/shared_tests.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/railties/shared_tests.rb b/railties/test/railties/shared_tests.rb index 659551d08a..d8ea58166e 100644 --- a/railties/test/railties/shared_tests.rb +++ b/railties/test/railties/shared_tests.rb @@ -54,7 +54,7 @@ module RailtiesTest add_to_config "ActiveRecord::Base.timestamped_migrations = false" Dir.chdir(app_path) do - output = `rake bukkits:install:migrations` + output = `bundle exec rake bukkits:install:migrations` assert File.exists?("#{app_path}/db/migrate/2_create_users.rb") assert File.exists?("#{app_path}/db/migrate/3_add_last_name_to_users.rb") @@ -63,7 +63,7 @@ module RailtiesTest assert_match /NOTE: Migration 3_create_sessions.rb from bukkits has been skipped/, output assert_equal 3, Dir["#{app_path}/db/migrate/*.rb"].length - output = `rake railties:install:migrations` + output = `bundle exec rake railties:install:migrations` assert File.exists?("#{app_path}/db/migrate/4_create_yaffles.rb") assert_match /NOTE: Migration 3_create_sessions.rb from bukkits has been skipped/, output @@ -71,7 +71,7 @@ module RailtiesTest assert_no_match /2_create_users/, output migrations_count = Dir["#{app_path}/db/migrate/*.rb"].length - output = `rake railties:install:migrations` + output = `bundle exec rake railties:install:migrations` assert_equal migrations_count, Dir["#{app_path}/db/migrate/*.rb"].length end |