Sha256: 367b2f8f3ed59469b0b21129fa0a6c379c55514601ad227a048a4b7a5963709b
Contents?: true
Size: 739 Bytes
Versions: 8
Compression:
Stored size: 739 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(File.expand_path("../config.ru", __dir__)).first end Pry.start end
Version data entries
8 entries across 8 versions & 1 rubygems