script/local in activeadmin-0.6.6 vs script/local in activeadmin-1.0.0.pre1
- old
+ new
@@ -17,20 +17,20 @@
EOF
exit(1)
end
# Set up some variables
-rails_version = detect_rails_version || '3.0.0'
+rails_version = detect_rails_version!
test_app_dir = ".test-rails-apps"
test_app_path = "#{test_app_dir}/test-rails-app-#{rails_version}"
# Ensure .test-rails-apps is created
system "mkdir #{test_app_dir}" unless File.exists?(test_app_dir)
# Create the sample rails app if it doesn't already exist
unless File.exists? test_app_path
- system "RAILS='#{rails_version}' bundle exec rails new #{test_app_path} -m spec/support/rails_template_with_data.rb"
+ system "RAILS='#{rails_version}' bundle exec rails new #{test_app_path} -m spec/support/rails_template_with_data.rb --skip-bundle"
end
# Link this rails app
system "rm test-rails-app"
system "ln -s #{test_app_path} test-rails-app"