forked from genuitytech/savon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed and refactored specs to use rspec2 and follow conventions. also…
… moved integration specs into their own repository.
- Loading branch information
Showing
17 changed files
with
41 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--colour |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,13 @@ | ||
require "rake" | ||
require "spec/rake/spectask" | ||
require "spec/rake/verify_rcov" | ||
|
||
task :default => :spec | ||
|
||
Spec::Rake::SpecTask.new do |spec| | ||
spec.spec_files = FileList["spec/{savon}/**/*_spec.rb"] | ||
spec.spec_opts << "--color" | ||
spec.libs += ["lib", "spec"] | ||
spec.rcov = true | ||
end | ||
|
||
RCov::VerifyTask.new(:spec_verify => :spec) do |verify| | ||
verify.threshold = 100.0 | ||
verify.index_html = "rcov/index.html" | ||
end | ||
|
||
desc "Run integration specs using WEBrick" | ||
task :spec_integration do | ||
pid = fork { exec "ruby spec/integration/server.rb" } | ||
sleep 10 # wait until the server is actually ready | ||
begin | ||
task(:run_integration_spec).invoke | ||
ensure | ||
Process.kill "TERM", pid | ||
Process.wait pid | ||
end | ||
end | ||
|
||
desc "" # make this task invisible | ||
Spec::Rake::SpecTask.new(:run_integration_spec) do |spec| | ||
spec.spec_files = FileList["spec/{integration}/**/*_spec.rb"] | ||
spec.spec_opts << "--color" | ||
spec.libs += ["lib", "spec"] | ||
end | ||
|
||
begin | ||
require "hanna/rdoctask" | ||
require "rspec/core/rake_task" | ||
|
||
Rake::RDocTask.new do |rdoc| | ||
rdoc.title = "Savon - Heavy metal Ruby SOAP client library" | ||
rdoc.rdoc_dir = "doc" | ||
rdoc.rdoc_files.include("**/*.rdoc").include("lib/**/*.rb") | ||
rdoc.options << "--line-numbers" | ||
rdoc.options << "--webcvs=http://github.com/rubiii/savon/tree/master/" | ||
RSpec::Core::RakeTask.new do |t| | ||
t.spec_opts = %w(-fd -c) | ||
end | ||
rescue LoadError | ||
puts "'gem install hanna' for documentation" | ||
task :spec do | ||
abort "Run 'gem install rspec --pre' to be able to run specs" | ||
end | ||
end | ||
|
||
task :default => :spec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Autotest.add_discovery { "rspec2" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Autotest.add_discovery { "rspec2" } |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
require "basic_spec_helper" | ||
require "rspec" | ||
require "mocha" | ||
require "fakeweb" | ||
|
||
FileList["spec/fixtures/**/*.rb"].each { |fixture| require fixture } | ||
require "endpoint_helper" | ||
require "http_stubs" | ||
RSpec.configure do |config| | ||
config.mock_with :mocha | ||
end | ||
|
||
require "savon" | ||
Savon::Request.log = false | ||
|
||
# Requires fixtures. | ||
Dir["spec/fixtures/**/*.rb"].each {|file| require file } | ||
|
||
# Requires supporting files. | ||
require "support/endpoint_helper" | ||
require "support/http_stubs" |
File renamed without changes.
File renamed without changes.