You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
413 B

# encoding: utf-8
require 'rubygems'
require 'bundler'
Bundler.setup(:testing)
require 'cucumber/rake/task'
def darwin?
os=%x[uname -s]
"Darwin" === os
end
Cucumber::Rake::Task.new do |t|
opts = defined?(JRUBY_VERSION) ? %w{--tags ~@jruby} : []
opts += %w{--tags ~@fails-on-darwin} if darwin?
t.cucumber_opts = opts
end
desc "Run Cucumber features"
task :test => [:cucumber]
task :default => :test