Permalink
Browse files

add rubocop to default rake test

This should make travis care about it
  • Loading branch information...
1 parent d86b8ed commit 6eb09957a3ff85d9bf7d53788a01fa7631dd472b @mroth committed Feb 10, 2014
Showing with 7 additions and 4 deletions.
  1. +3 −1 CONTRIBUTING
  2. +4 −3 Rakefile
View
@@ -8,4 +8,6 @@ GUIDELINES FOR CONTRIBUTING
You can run the existing test-suite via `rake`. Ensure nothing is broken, but since the test since is far from complete, it'd be awesome if you manually tested for regressions as well.
-Please, if at all possible, write a passing test for the functionality you added.
+Please, if at all possible, write a passing test for the functionality you added.
+
+The default rake task uses Rubocop on default settings to ensure Ruby Style Guidelines. If you want to run tests before conforming to this to verify functionality you can just run `rake test` and `rake features` manually.
View
@@ -7,6 +7,7 @@ require 'cucumber'
require 'cucumber/rake/task'
gem 'rdoc' # we need the installed RDoc gem, not the system one
require 'rdoc/task'
+require 'rubocop/rake_task'
include Rake::DSL
@@ -37,13 +38,13 @@ Cucumber::Rake::Task.new(:features) do |t|
end
Rake::RDocTask.new do |rd|
-
rd.main = "README.rdoc"
-
rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*")
end
-task :default => [:test,:features]
+Rubocop::RakeTask.new
+
+task :default => [:rubocop,:test,:features]

0 comments on commit 6eb0995

Please sign in to comment.