Rakefile in authkit-0.4.0 vs Rakefile in authkit-0.5.0

- old
+ new

@@ -31,11 +31,11 @@ task :prepare do next if Dir.exist?("spec/tmp/sample") FileUtils.mkdir_p("spec/tmp") - system "cd spec/tmp && rails new sample" + system "cd spec/tmp && rails new sample --skip-spring" # bundle gem_root = File.expand_path(File.dirname(__FILE__)) system "echo \"gem 'rspec-rails'\" >> spec/tmp/sample/Gemfile" system "echo \"gem '#{gem_name}', :path => '#{gem_root}'\" >> spec/tmp/sample/Gemfile" @@ -58,10 +58,11 @@ system "cd spec/tmp/sample && rake db:migrate:reset" end desc "Run the #{gem_name} generator" task gem_name do - system "cd spec/tmp/sample && rails g #{gem_name}:install --force && rake db:migrate db:test:prepare" + system "cd spec/tmp/sample && rails g #{gem_name}:install --force #{'--oauth --google' if ENV['SKIP_OAUTH'].nil?} #{'--skip-username' unless ENV['SKIP_USERNAME'].nil?} && rake db:migrate" + system "cd spec/tmp/sample && rake db:migrate RAILS_ENV=test" end end task :default => :spec