Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (23 sloc) 0.505 kb
require 'rspec/core/rake_task'
task :default => :spec
def windows?
Rake::Win32.windows?
end
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = "spec/**/*_spec.rb"
t.rspec_opts =
"--format d --backtrace"
t.rspec_opts += " --color" if !windows?
# t.ruby_opts="-w"
end
def rerun cmd, rerun_opts = nil
if windows?
exec cmd
else
exec "rerun #{rerun_opts} -- #{cmd}"
end
end
desc "run the site locally (visit http://localhost:9292)"
task :run do
rerun "rackup -s thin"
end
Jump to Line
Something went wrong with that request. Please try again.