forked from errbit/errbit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
21 lines (17 loc) · 714 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
# These rake tasks should always be run in the 'test' environment and the
# environment name must be set before loading the Rails application
test_env_tasks = %w(default spec)
if Rake.application.top_level_tasks.any? { |t| test_env_tasks.include?(t) }
ENV['RAILS_ENV'] = 'test'
end
require File.expand_path('../config/application', __FILE__)
Rails.application.load_tasks
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
task default: :spec
rescue LoadError
warn "Notice: no rspec tasks available in this environment"
end