Sha256: e47c0819501161f151e090904836c5e5773712085fbaddd16caf3260485a612a
Contents?: true
Size: 924 Bytes
Versions: 2
Compression:
Stored size: 924 Bytes
Contents
#!/usr/bin/env rake require "bundler/gem_tasks" require 'rspec/core/rake_task' ENV["RAILS_ROOT"] = 'spec/internal' desc 'Default: run specs.' task :default => :spec desc "Run specs" RSpec::Core::RakeTask.new(:spec => :generate) do |t| t.rspec_opts = "--colour" end describe "Create the test rails app" task :generate do unless File.exists?('spec/internal/Rakefile') puts "Generating rails app" `rails new spec/internal` puts "Copying gemfile" `cp spec/support/Gemfile spec/internal` puts "Copying generator" `cp -r spec/support/lib/generators spec/internal/lib` FileUtils.cd('spec/internal') puts "Bundle install" `bundle install` puts "running generator" puts `rails generate test_app` FileUtils.cd('../..') end puts "Running specs" end describe "Clean out the test rails app" task :clean do puts "Removing sample rails app" `rm -rf spec/internal` end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hydra-batch-edit-0.0.4 | Rakefile |
hydra-batch-edit-0.0.3 | Rakefile |