Sha256: e321e077de9918c2a051317499226e2cb5da774f82bf190cbcd8d70730871c15

Contents?: true

Size: 1.11 KB

Versions: 16

Compression:

Stored size: 1.11 KB

Contents

require 'bundler/setup'
require 'thor'

APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
load 'rails/tasks/engine.rake' if File.exists? 'spec/dummy/Rakefile'

Bundler::GemHelper.install_tasks

require "rspec/core/rake_task" 
RSpec::Core::RakeTask.new(:spec) do |spec|
  spec.rspec_opts = "-I #{File.expand_path('../spec/', __FILE__)}"
  spec.pattern = FileList[File.expand_path('../spec/**/*_spec.rb', __FILE__)]
end
task default: :spec

task :setup_db do
  # Use system so that we load the dummy app's Rake commands.

  # Drop any existing db so that it is recreated; Hide output so there's no stack trace if the db doesn't exist
  system('cd spec/dummy && RAILS_ENV=test bundle exec rake db:drop >/dev/null 2>&1')
  
  # Use system so that we funcitonally test the install generator.
  system("cd spec/dummy && RAILS_ENV=test bundle exec rake db:create && RAILS_ENV=test bundle exec rake db:migrate")
end

require 'rails/dummy/tasks'

task :skip_concerns do
  ENV['SKIP_CONCERNS'] = 'true'
end
task :skip_decorators do
  ENV['SKIP_DECORATORS'] = 'true'
end

task :spec => [ :skip_concerns, :skip_decorators ]


Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fe-2.1.6.1 Rakefile
fe-2.1.6 Rakefile
fe-2.1.5 Rakefile
fe-2.1.4 Rakefile
fe-2.1.3 Rakefile
fe-2.1.2 Rakefile
fe-2.1.1 Rakefile
fe-2.0.8 Rakefile
fe-2.0.6 Rakefile
fe-2.0.5 Rakefile
fe-2.0.4 Rakefile
fe-2.0.3 Rakefile
fe-2.0.2 Rakefile
fe-2.0.1 Rakefile
fe-2.0.0 Rakefile
fe-1.0.0 Rakefile