Last active
August 29, 2015 14:04
-
-
Save tacticiankerala/da4e730efd69af7232a1 to your computer and use it in GitHub Desktop.
rake-rspec-and-rubocop-karma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if Rails.env.development? | |
require 'rspec/core/rake_task' | |
require 'rubocop/rake_task' | |
desc "run rspec" | |
RSpec::Core::RakeTask.new(:rspec) | |
desc "run rubocop" | |
RuboCop::RakeTask.new(:rubocop) | |
desc "js tests" | |
task :karma do | |
system 'karma run' | |
end | |
task :housekeeping => [:rspec, :rubocop, :karma] | |
task :default => :housekeeping | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment