Add RSpec and Rubocop
This commit is contained in:
parent
61a6e19417
commit
0a3ecbb81b
8
Gemfile
8
Gemfile
|
@ -1,4 +1,10 @@
|
|||
source 'https://rubygems.org'
|
||||
|
||||
gem 'rake'
|
||||
|
||||
gem 'github_api'
|
||||
gem 'colorize'
|
||||
gem 'rake'
|
||||
|
||||
group :test do
|
||||
gem 'rubocop'
|
||||
end
|
||||
|
|
12
Rakefile
12
Rakefile
|
@ -1,9 +1,7 @@
|
|||
require "rake/testtask"
|
||||
require 'rubocop/rake_task'
|
||||
require 'rspec/core/rake_task'
|
||||
|
||||
task :default => [:test]
|
||||
RuboCop::RakeTask.new
|
||||
RSpec::Core::RakeTask.new(:rspec)
|
||||
|
||||
Rake::TestTask.new do |t|
|
||||
t.verbose = true
|
||||
t.libs.push("demo", "test")
|
||||
t.pattern = "test/**/*_test.rb"
|
||||
end
|
||||
task :default => [:rubocop, :rspec]
|
||||
|
|
Loading…
Reference in New Issue
Block a user