tasks/cucumber.rake in nkryptic-sandbox-0.2.2 vs tasks/cucumber.rake in nkryptic-sandbox-0.2.3

- old
+ new

@@ -1,25 +1,18 @@ begin require 'cucumber' -rescue LoadError - require 'rubygems' - require 'cucumber' -end -begin require 'cucumber/rake/task' + # Try these: + # + # rake features + # rake features PROFILE=html + Cucumber::Rake::Task.new do |t| + # profile = ENV[ 'PROFILE' ] || 'default' + # t.cucumber_opts = "--profile #{profile}" + t.cucumber_opts = "--format pretty" + end rescue LoadError puts <<-EOS To use cucumber for testing you must install cucumber gem: gem install cucumber EOS - exit( 0 ) -end - -# Try these: -# -# rake features -# rake features PROFILE=html -Cucumber::Rake::Task.new do |t| - # profile = ENV[ 'PROFILE' ] || 'default' - # t.cucumber_opts = "--profile #{profile}" - t.cucumber_opts = "--format pretty" end \ No newline at end of file