File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010gem "reek" , "~> 6.1"
1111gem "rubocop" , "~> 1.48"
12- gem "vcr" , "~> 6.1.0"
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ Gem::Specification.new do |spec|
3838 spec . executables = spec . files . grep ( %r{^exe/} ) { |f | File . basename ( f ) }
3939 spec . require_paths = [ "lib" ]
4040
41- spec . add_dependency "base64" , "~> 0.3.0"
4241 spec . add_dependency "rubycritic" , ">= 4.5.2" , "< 5.0"
4342 spec . add_dependency "terminal-table" , "~> 3.0"
4443
@@ -53,5 +52,5 @@ Gem::Specification.new do |spec|
5352 spec . add_development_dependency "rubocop"
5453 spec . add_development_dependency "simplecov" , "~> 0.18"
5554 spec . add_development_dependency "simplecov-console" , "0.5.0"
56- spec . add_development_dependency "webmock" , "~> 3.10 .0"
55+ spec . add_development_dependency "webmock" , "~> 3.20 .0"
5756end
Original file line number Diff line number Diff line change 7575 end
7676
7777 around do |example |
78- VCR . use_cassette "skunk-fyi" do
79- example . call
80- end
78+ stub_request ( :post , "https://skunk.fastruby.io/reports" ) . to_return (
79+ status : 200 ,
80+ body : '{"id":"j"}' ,
81+ headers : { "Content-Type" => "application/json" }
82+ )
83+ example . call
8184 end
8285
8386 it "share report to default server" do
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2626require "minitest/around/spec"
2727require "minitest/stub_any_instance"
2828require "webmock/minitest"
29- require "vcr"
3029
3130require "skunk/rubycritic/analysed_module"
3231
@@ -53,8 +52,4 @@ def capture_output_streams
5352 $stderr = STDERR
5453end
5554
56- VCR . configure do |config |
57- config . hook_into :webmock
58- config . allow_http_connections_when_no_cassette = false
59- config . cassette_library_dir = "test/samples/vcr"
60- end
55+ WebMock . disable_net_connect! ( allow_localhost : true )
You can’t perform that action at this time.
0 commit comments