Sha256: 7670f591493d1d44b82b4be9766ed8fd1c3b60ffb711359a7352dc74de83c8b5

Contents?: true

Size: 1.57 KB

Versions: 5

Compression:

Stored size: 1.57 KB

Contents

#!/usr/bin/env rake

require 'bundler'
Bundler::GemHelper.install_tasks

namespace :rvm do
  desc 'Run specs against 1.8.6, REE, 1.8.7, 1.9.2 and jRuby'
  task :specs do
    # JCF: I'd love to be able to use RVM's `rvm {rubies} specs` command but
    # the require tests in spec/other_net_http_libs_spec.rb break when doing
    # so.
    spec_files = Dir[File.dirname(__FILE__) + '/spec/**/*_spec.rb'].join(' ')
    sh "rvm 1.8.6@webmock,ree@webmock,1.8.7@webmock,1.9.2@webmock,jruby@webmock exec rspec #{spec_files}"
  end
end

require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec) do |t|
  t.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
  t.pattern = 'spec/**/*_spec.rb'
end

RSpec::Core::RakeTask.new(:spec_http_without_webmock) do |t|
  t.rspec_opts = ["-c", "-f progress", "-r ./spec/real_net_http_spec.rb"]
  t.pattern = 'spec/real_net_http_spec.rb'
end

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.test_files = FileList["test/**/*.rb"].exclude("test/test_helper.rb")
  test.verbose = false
  test.warning = false
end

Rake::TestTask.new(:minitest) do |test|
  test.test_files = FileList["minitest/**/*.rb"].exclude("test/test_helper.rb")
  test.verbose = false
  test.warning = false
end

task :default => [:spec, :spec_http_without_webmock, :test, :minitest]

require 'rdoc/task'
RDoc::Task.new do |rdoc|
  $:.push File.expand_path('../lib', __FILE__)
  require 'webmock/version'

  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = "webmock #{WebMock::VERSION}"
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/webmock/webmock.rb')
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
webmock-1.7.4 Rakefile
webmock-1.7.3 Rakefile
webmock-1.7.2 Rakefile
webmock-1.7.1 Rakefile
webmock-1.7.0 Rakefile