spec/spec_helper.rb in wss_agent-18.10.2 vs spec/spec_helper.rb in wss_agent-18.10.3
- old
+ new
@@ -1,36 +1,36 @@
-require 'bundler/setup'
-Bundler.setup
-require 'faraday'
-require 'wss_agent'
-require 'webmock/rspec'
-require 'timecop'
-
-require 'vcr'
-require 'support/exit_code_matches'
-
-VCR.configure do |config|
- config.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
- config.hook_into :webmock
- config.configure_rspec_metadata!
- config.allow_http_connections_when_no_cassette = false
-end
-
-RSpec.configure do |config|
-
- config.expect_with :rspec do |c|
- c.syntax = :expect
- end
-
- def capture(stream)
- begin
- stream = stream.to_s
- eval "$#{stream} = StringIO.new"
- yield
- result = eval("$#{stream}").string
- ensure
- eval("$#{stream} = #{stream.upcase}")
- end
- result
- end
-
-end
+require 'bundler/setup'
+Bundler.setup
+require 'faraday'
+require 'wss_agent'
+require 'webmock/rspec'
+require 'timecop'
+
+require 'vcr'
+require 'support/exit_code_matches'
+
+VCR.configure do |config|
+ config.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
+ config.hook_into :webmock
+ config.configure_rspec_metadata!
+ config.allow_http_connections_when_no_cassette = false
+end
+
+RSpec.configure do |config|
+
+ config.expect_with :rspec do |c|
+ c.syntax = :expect
+ end
+
+ def capture(stream)
+ begin
+ stream = stream.to_s
+ eval "$#{stream} = StringIO.new"
+ yield
+ result = eval("$#{stream}").string
+ ensure
+ eval("$#{stream} = #{stream.upcase}")
+ end
+ result
+ end
+
+end