Sha256: df66fe6414aa6261562fd3d78c0c42e6da7845f213f968bc2edcde079f75ac37

Contents?: true

Size: 675 Bytes

Versions: 1

Compression:

Stored size: 675 Bytes

Contents

#!/usr/bin/env rake
begin
  require 'bundler/setup'
rescue LoadError
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end

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

Bundler::GemHelper.install_tasks

task :spec do
  require 'rspec/core/rake_task'
  ENV['RAILS_ENV'] = 'test'
  Rails.env = 'test'
  Rake::Task["db:drop"].invoke rescue true
  Rake::Task["db:create"].invoke
  Rake::Task['environment'].invoke
  Rake::Task['db:schema:load'].invoke
  RSpec::Core::RakeTask.new(:__spec) do |t|
    t.pattern = "./spec/**/*_spec.rb"
  end
  Rake::Task['__spec'].invoke
end

task default: :spec

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activity_engine-0.0.6 Rakefile