Add RSpec and Rubocop

This commit is contained in:
Enrico Stahn 2015-03-26 16:00:08 +11:00
parent 61a6e19417
commit 0a3ecbb81b
2 changed files with 12 additions and 8 deletions

View File

@ -1,4 +1,10 @@
source 'https://rubygems.org'
gem 'rake'
gem 'github_api'
gem 'colorize'
gem 'rake'
group :test do
gem 'rubocop'
end

View File

@ -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]