Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 31 lines (25 sloc) 0.918 kb
1c202c5 @jcf Make Rakefile executable
jcf authored
1 #!/usr/bin/env rake
2
d73224f @jcf Rip out jeweler and use bundler instead
jcf authored
3 require 'bundler'
4 Bundler::GemHelper.install_tasks
bb63e1f Imported project to github
Bartosz Blimke authored
5
9948087 @jcf Rename spec:rubies task to rvm:specs
jcf authored
6 namespace :rvm do
221e8cd @jcf Document setting up a WebMock development environment
jcf authored
7 desc 'Run specs against 1.8.6, REE, 1.8.7, 1.9.2 and jRuby'
9948087 @jcf Rename spec:rubies task to rvm:specs
jcf authored
8 task :specs do
221e8cd @jcf Document setting up a WebMock development environment
jcf authored
9 # JCF: I'd love to be able to use RVM's `rvm {rubies} specs` command but
10 # the require tests in spec/other_net_http_libs_spec.rb break when doing
11 # so.
12 spec_files = Dir[File.dirname(__FILE__) + '/spec/**/*_spec.rb'].join(' ')
13 sh "rvm 1.8.6@webmock,ree@webmock,1.8.7@webmock,1.9.2@webmock,jruby@webmock exec rspec #{spec_files}"
14 end
15 end
16
e4a3b6b @bblimke Changed WebMock specs to use RSpec2
authored
17 require "rspec/core/rake_task"
18 RSpec::Core::RakeTask.new do |t|
d73224f @jcf Rip out jeweler and use bundler instead
jcf authored
19 t.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
e4a3b6b @bblimke Changed WebMock specs to use RSpec2
authored
20 t.pattern = 'spec/**/*_spec.rb'
bb63e1f Imported project to github
Bartosz Blimke authored
21 end
22
23 require 'rake/testtask'
24 Rake::TestTask.new(:test) do |test|
25 test.test_files = FileList["test/**/*.rb"].exclude("test/test_helper.rb")
26 test.verbose = false
2bd65d9 Upgraded gem version to 0.7.2
Bartosz Blimke authored
27 test.warning = false
bb63e1f Imported project to github
Bartosz Blimke authored
28 end
29
30 task :default => [:spec, :test]
Something went wrong with that request. Please try again.