add rspec to rake
This commit is contained in:
parent
8f7ca92e07
commit
fe94b0f646
2 changed files with 19 additions and 9 deletions
12
Rakefile
12
Rakefile
|
|
@ -21,13 +21,7 @@ load "rails/tasks/statistics.rake"
|
||||||
|
|
||||||
Bundler::GemHelper.install_tasks
|
Bundler::GemHelper.install_tasks
|
||||||
|
|
||||||
require "rake/testtask"
|
require "rspec/core/rake_task"
|
||||||
|
RSpec::Core::RakeTask.new(:spec)
|
||||||
|
|
||||||
Rake::TestTask.new(:test) do |t|
|
task default: :spec
|
||||||
t.libs << "lib"
|
|
||||||
t.libs << "test"
|
|
||||||
t.pattern = "test/**/*_test.rb"
|
|
||||||
t.verbose = false
|
|
||||||
end
|
|
||||||
|
|
||||||
task default: :test
|
|
||||||
|
|
|
||||||
16
bin/rake
Executable file
16
bin/rake
Executable file
|
|
@ -0,0 +1,16 @@
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
#
|
||||||
|
# This file was generated by Bundler.
|
||||||
|
#
|
||||||
|
# The application 'rake' is installed as part of a gem, and
|
||||||
|
# this file is here to facilitate running it.
|
||||||
|
#
|
||||||
|
|
||||||
|
require 'pathname'
|
||||||
|
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
||||||
|
Pathname.new(__FILE__).realpath)
|
||||||
|
|
||||||
|
require 'rubygems'
|
||||||
|
require 'bundler/setup'
|
||||||
|
|
||||||
|
load Gem.bin_path('rake', 'rake')
|
||||||
Loading…
Reference in a new issue