File: 02_disable_vcr.diff

package info (click to toggle)
ruby-docker-api 1.22.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,436 kB
  • ctags: 161
  • sloc: ruby: 2,930; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 510 bytes parent folder | download | duplicates (2)
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

--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -15,7 +15,8 @@
   end
 end
 
-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