[DRE-commits] [ruby-webmock] 04/04: add filter in debian/ruby-tests.rake to deactivate tests using network access

Cédric Boutillier boutil at moszumanska.debian.org
Tue Sep 30 21:23:31 UTC 2014


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch master
in repository ruby-webmock.

commit 602c1a252ae385a1239d3a8f5b7c7a597dd0bc67
Author: Cédric Boutillier <boutil at debian.org>
Date:   Tue Sep 30 23:16:59 2014 +0200

    add filter in debian/ruby-tests.rake to deactivate tests using network access
---
 debian/ruby-tests.rake | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index 6e3d723..27c8583 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -1,4 +1,8 @@
 require "rspec/core/rake_task"
+require "rspec"
+
+ENV["NO_CONNECTION"]="true"
+
 RSpec::Core::RakeTask.new(:spec) do |t|
   t.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
   t.pattern = FileList["spec/**/*_spec.rb"].exclude("spec/acceptance/patron/*")
@@ -9,10 +13,9 @@ RSpec::Core::RakeTask.new(:spec_http_without_webmock) do |t|
   t.pattern = 'spec/acceptance/net_http/real_net_http_spec.rb'
 end
 
-
-#task :em_http_request_0_x_spec do
-#  sh "EM_HTTP_REQUEST_0_X=true bundle install && EM_HTTP_REQUEST_0_X=true bundle exec rspec spec/acceptance/em_http_request/em_http_request_spec.rb" if RUBY_VERSION <= "1.8.7"
-#end
+RSpec.configure do |config|
+  config.filter_run_excluding :without_webmock => true
+end
 
 require 'rake/testtask'
 Rake::TestTask.new(:test) do |test|

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-webmock.git



More information about the Pkg-ruby-extras-commits mailing list