Rakefile in middleman-blog-3.5.0 vs Rakefile in middleman-blog-3.5.1
- old
+ new
@@ -15,10 +15,18 @@
t.cucumber_opts = "--color --tags ~@wip #{exempt_tags} --strict --format #{ENV['CUCUMBER_FORMAT'] || 'pretty'}"
end
require 'rake/clean'
-task :test => ["cucumber"]
+desc "Run tests, both RSpec and Cucumber"
+task :test => [:spec, :cucumber]
+
+require 'rspec/core/rake_task'
+desc "Run RSpec"
+RSpec::Core::RakeTask.new do |spec|
+ spec.pattern = 'spec/**/*_spec.rb'
+ spec.rspec_opts = ['--color', '--format nested']
+end
begin
require 'cane/rake_task'
desc "Run cane to check quality metrics"