Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add rubocop to default rake test

This should make travis care about it
  • Loading branch information...
commit 6eb09957a3ff85d9bf7d53788a01fa7631dd472b 1 parent d86b8ed
@mroth authored
Showing with 7 additions and 4 deletions.
  1. +3 −1 CONTRIBUTING
  2. +4 −3 Rakefile
View
4 CONTRIBUTING
@@ -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 Rakefile
@@ -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]
Please sign in to comment.
Something went wrong with that request. Please try again.