Rakefile in codesake-0.0.1 vs Rakefile in codesake-0.15.1
- old
+ new
@@ -1,7 +1,27 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"
-RSpec::Core::RakeTask.new
+require 'cucumber'
+require 'cucumber/rake/task'
-task :default => :spec
+Cucumber::Rake::Task.new(:features) do |t|
+ t.cucumber_opts = "features --format pretty -x"
+ t.fork = false
+end
+
+RSpec::Core::RakeTask.new do |t|
+ t.rspec_opts = ["--color"]
+end
+
+task :default => [ :spec, :features ]
task :test => :spec
+
+
+# namespace :spec do
+# desc "Run specs with RCov"
+# RSpec::Core::RakeTask.new('simplecov') do |t|
+# t.pattern = 'spec/**/*_spec.rb'
+# t.simplecov = true
+# t.simplecov_opts = ['--exclude', '\\/Library\\/Ruby']
+# end
+# end