summaryrefslogtreecommitdiff
path: root/script/rails
blob: 280205a2ba2cc9d6bd0c9ba871a60381f4fdf3bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env ruby
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.

# see all code executed by the rails server, and not just code executed in your actual test files, https://github.com/colszowka/simplecov
if ENV['RAILS_ENV'] == 'test'
   require 'simplecov'
   SimpleCov.start 'rails'
   puts "required simplecov"
end


APP_PATH = File.expand_path('../../config/application',  __FILE__)
require File.expand_path('../../config/boot',  __FILE__)
require 'rails/commands'