1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

make default test marionette

This commit is contained in:
Thomas Walpole 2017-03-07 13:19:03 -08:00
parent 1d55776b0d
commit 7e5a1f77a6

View file

@ -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