Sha256: f0c262e3c43d29cb51b791c26bdfa7dc9a0fa5aefda29436b4c45ba3a146bd8b
Contents?: true
Size: 721 Bytes
Versions: 28
Compression:
Stored size: 721 Bytes
Contents
require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:test) do |task| task.rspec_opts = %w{--require simplecov} if ENV['COVERAGE'] end task :coverage do ENV['COVERAGE'] = 'y' end desc 'Start the development server.' task :server => :environment do exec('guard', '-g', 'development') end desc 'Start the development environment which includes web server and tests.' task :development => :environment do exec('guard', '-g', 'development,test') end desc 'Start an interactive console for your web application' task :console => :environment do require 'pry' require 'rack/test' include Rack::Test::Methods def app @app ||= Rack::Builder.parse_file(SITE_ROOT + 'config.ru').first end Pry.start end
Version data entries
28 entries across 28 versions & 2 rubygems