File: 02_disable_vcr.diff

package info (click to toggle)
ruby-docker-api 1.10.10-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 964 kB
  • ctags: 114
  • sloc: ruby: 1,864; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 596 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Disable ruby-vcr tests
Author: Miguel Landaeta <nomadium@debian.org>
Forwarded: no
Last-Update: 2014-03-04

--- ruby-docker-api-1.8.4.orig/spec/spec_helper.rb
+++ ruby-docker-api-1.8.4/spec/spec_helper.rb
@@ -4,7 +4,8 @@ require 'rspec'
 require 'simplecov'
 require 'docker'
 
-Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
+# vcr tests are excluded because is not available in Debian yet: #695195.
+Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].reject { |f| f =~ /vcr/ }.each { |f| require f }
 
 RSpec.configure do |config|
   config.mock_with :rspec