Skip to content
Newer
Older
100755 48 lines (39 sloc) 1.35 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
4710449 @bblimke Created separate folder with minitest tests instead of running them f…
authored
30 Rake::TestTask.new(:minitest) do |test|
31 test.test_files = FileList["minitest/**/*.rb"].exclude("test/test_helper.rb")
32 test.verbose = false
33 test.warning = false
34 end
35
36 task :default => [:spec, :test, :minitest]
bb63e1f Imported project to github
Bartosz Blimke authored
37
2607add @bblimke Updated Rakefile to use new RDoc::Task
authored
38 require 'rdoc/task'
39 RDoc::Task.new do |rdoc|
d73224f @jcf Rip out jeweler and use bundler instead
jcf authored
40 $:.push File.expand_path('../lib', __FILE__)
41 require 'webmock/version'
bb63e1f Imported project to github
Bartosz Blimke authored
42
43 rdoc.rdoc_dir = 'rdoc'
d73224f @jcf Rip out jeweler and use bundler instead
jcf authored
44 rdoc.title = "webmock #{WebMock::VERSION}"
bb63e1f Imported project to github
Bartosz Blimke authored
45 rdoc.rdoc_files.include('README*')
46 rdoc.rdoc_files.include('lib/webmock/webmock.rb')
47 end
Something went wrong with that request. Please try again.