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

Version Path
operawatir-0.7.pre4-jruby spec/operawatir/watirspec.rake
operawatir-0.7.pre3-jruby spec/operawatir/watirspec.rake
operawatir-0.7.pre2-jruby spec/operawatir/watirspec.rake
operawatir-0.7.pre1-jruby spec/operawatir/watirspec.rake
operawatir-0.6.pre1-jruby spec/operawatir/watirspec.rake
operawatir-0.5.1-jruby spec/operawatir/watirspec.rake
operawatir-0.5-jruby spec/operawatir/watirspec.rake
operawatir-0.5.pre3-jruby spec/operawatir/watirspec.rake
operawatir-0.5.pre2-jruby spec/operawatir/watirspec.rake
operawatir-0.5.pre1-jruby spec/operawatir/watirspec.rake
operawatir-0.4.3.pre1-jruby spec/operawatir/watirspec.rake
operawatir-0.4.2-jruby spec/operawatir/watirspec.rake
operawatir-0.4.1-jruby spec/operawatir/watirspec.rake
operawatir-0.4.1.pre7-jruby spec/operawatir/watirspec.rake
operawatir-0.4.1.pre6-jruby spec/operawatir/watirspec.rake
operawatir-0.4.1.pre5-jruby spec/operawatir/watirspec.rake
operawatir-0.4.1.pre4-jruby spec/operawatir/watirspec.rake
operawatir-0.4.1.pre3-jruby spec/operawatir/watirspec.rake
operawatir-0.4.1.pre2-jruby spec/operawatir/watirspec.rake
operawatir-0.4.1.pre1-jruby spec/operawatir/watirspec.rake