Rakefile in d-mark-0.1 vs Rakefile in d-mark-0.2.0
- old
+ new
@@ -1,3 +1,14 @@
-Rake.add_rakelib 'tasks'
+require 'rspec/core/rake_task'
+require 'rubocop/rake_task'
-task default: [:test, :rubocop]
+RSpec::Core::RakeTask.new(:spec) do |t|
+ t.rspec_opts = '-r ./spec/spec_helper.rb --color'
+ t.verbose = false
+end
+
+RuboCop::RakeTask.new(:rubocop) do |task|
+ task.options = %w( --display-cop-names --format simple )
+ task.patterns = ['lib/**/*.rb', 'spec/**/*.rb']
+end
+
+task default: [:spec, :rubocop]