Sha256: dac21cc85b94c560bad7ebda622b1cf5d8a7672a140cbe0258ef9b25929f7dfc
Contents?: true
Size: 1.06 KB
Versions: 20
Compression:
Stored size: 1.06 KB
Contents
begin require 'rspec' rescue LoadError begin require 'rubygems' require 'rspec' rescue LoadError puts <<-EOS To use rspec for testing you must install rspec gem: gem install rspec EOS exit(0) end end require 'rspec/core/rake_task' namespace :watirspec do desc "Run the specs under #{File.dirname(__FILE__)}" RSpec::Core::RakeTask.new(:run) do |t| t.pattern = "#{File.dirname(__FILE__)}/*_spec.rb" end end namespace :watirspec do def watirspec_config; "#{File.dirname(__FILE__)}/.git/config"; end # # stolen from rubinius # desc 'Switch to the committer url for watirspec' task :committer do system "git config --file #{watirspec_config} remote.origin.url git@github.com:jarib/watirspec.git" puts "\nYou're now accessing watirspec via the committer URL." end desc "Switch to the watirspec anonymous URL" task :anon do system "git config --file #{watirspec_config} remote.origin.url git://github.com/jarib/watirspec.git" puts "\nYou're now accessing watirspec via the anonymous URL." end end
Version data entries
20 entries across 20 versions & 1 rubygems