Rakefile in simple_captcha2-0.4.0 vs Rakefile in simple_captcha2-0.4.2
- old
+ new
@@ -13,11 +13,11 @@
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end
APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
-if File.exists? APP_RAKEFILE
+if File.exist? APP_RAKEFILE
load 'rails/tasks/engine.rake'
end
namespace :dummy do
desc 'Setup dummy Rails app for test purpose'
@@ -28,10 +28,10 @@
SimpleCaptcha::DummyGenerator.start %w(--quiet)
end
desc 'destroy dummy Rails app under test/dummy'
task :destroy do
- FileUtils.rm_rf "test/dummy" if File.exists?("test/dummy")
+ FileUtils.rm_rf "test/dummy" if File.exist?("test/dummy")
end
desc 'redo'
task :redo do
sh 'rake dummy:destroy'