add rspec to rake

This commit is contained in:
Benjamin Neff 2015-06-11 02:32:53 +02:00
parent 8f7ca92e07
commit fe94b0f646
2 changed files with 19 additions and 9 deletions

View file

@ -21,13 +21,7 @@ load "rails/tasks/statistics.rake"
Bundler::GemHelper.install_tasks
require "rake/testtask"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
Rake::TestTask.new(:test) do |t|
t.libs << "lib"
t.libs << "test"
t.pattern = "test/**/*_test.rb"
t.verbose = false
end
task default: :test
task default: :spec

16
bin/rake Executable file
View 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')