Rakefile in watir-6.15.1 vs Rakefile in watir-6.16.0

- old
+ new

@@ -5,10 +5,11 @@ require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |spec| spec.rspec_opts = %w[--color --require fuubar --format Fuubar] spec.pattern = 'spec/**/*_spec.rb' + spec.exclude_pattern = 'spec/unit/**/*_spec.rb' end require 'rubocop/rake_task' RuboCop::RakeTask.new(:rubocop) do |t| @@ -151,9 +152,14 @@ task "remote_#{browser}" do ENV['WATIR_BROWSER'] = browser ENV['USE_REMOTE'] = 'true' Rake::Task[:spec].execute end + end + + desc 'Run the Unit tests' + RSpec::Core::RakeTask.new(:unit) do |spec| + spec.pattern = 'spec/unit/**/**_spec.rb' end desc 'Run element location specs and report wire calls' RSpec::Core::RakeTask.new(:stats) do |spec| ENV['SELENIUM_STATS'] = 'true'