From 7e5a1f77a6f5d81438b18f9338bb80ca138ab166 Mon Sep 17 00:00:00 2001 From: Thomas Walpole Date: Tue, 7 Mar 2017 13:19:03 -0800 Subject: [PATCH] make default test marionette --- Rakefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 4a337abe..b88e68c9 100644 --- a/Rakefile +++ b/Rakefile @@ -4,7 +4,7 @@ require 'cucumber/rake/task' require 'yard' desc "Run all examples with Firefox non-marionette" -RSpec::Core::RakeTask.new(:spec) do |t| +RSpec::Core::RakeTask.new(:spec_firefox) do |t| t.rspec_opts = %w[--color] t.rspec_opts << '--format documentation' if RUBY_PLATFORM=='java' # When we drop RSpec 2.x support we can rename spec_chrome.rb and implement this properly @@ -26,6 +26,8 @@ RSpec::Core::RakeTask.new(:spec_chrome) do |t| t.pattern = './spec/*{_spec_chrome.rb}' end +task :spec => [:spec_marionette] + YARD::Rake::YardocTask.new do |t| t.files = ['lib/**/*.rb'] t.options = %w(--markup=markdown) @@ -42,7 +44,7 @@ task :travis do |t| Rake::Task[:spec_marionette].invoke Rake::Task[:cucumber].invoke else - Rake::Task[:spec].invoke + Rake::Task[:spec_firefox].invoke Rake::Task[:cucumber].invoke end end