Skip to content

Commit 97e926b

Browse files
committed
added webmock
1 parent 8d97272 commit 97e926b

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ gem 'bootsnap', '>= 1.1.0', require: false
3232

3333
group :development, :test do
3434
gem 'rspec-rails'
35+
gem 'webmock', require: false
3536
gem 'database_cleaner'
3637
gem 'shoulda-matchers', '4.0.0.rc1'
3738
gem 'rails-controller-testing' # If you are using Rails 5.x

Gemfile.lock

+12
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,16 @@ GEM
5050
i18n (>= 0.7, < 2)
5151
minitest (~> 5.1)
5252
tzinfo (~> 1.1)
53+
addressable (2.5.2)
54+
public_suffix (>= 2.0.2, < 4.0)
5355
arel (9.0.0)
5456
bootsnap (1.3.2)
5557
msgpack (~> 1.0)
5658
builder (3.2.3)
5759
byebug (10.0.2)
5860
concurrent-ruby (1.1.3)
61+
crack (0.4.3)
62+
safe_yaml (~> 1.0.0)
5963
crass (1.0.4)
6064
database_cleaner (1.7.0)
6165
diff-lcs (1.3)
@@ -64,6 +68,7 @@ GEM
6468
ffi (1.9.25)
6569
globalid (0.4.1)
6670
activesupport (>= 4.2.0)
71+
hashdiff (0.3.7)
6772
i18n (1.1.1)
6873
concurrent-ruby (~> 1.0)
6974
listen (3.1.5)
@@ -87,6 +92,7 @@ GEM
8792
nio4r (2.3.1)
8893
nokogiri (1.8.5)
8994
mini_portile2 (~> 2.3.0)
95+
public_suffix (3.0.3)
9096
puma (3.12.0)
9197
rack (2.0.6)
9298
rack-proxy (0.6.5)
@@ -147,6 +153,7 @@ GEM
147153
rspec-support (~> 3.8.0)
148154
rspec-support (3.8.0)
149155
ruby_dep (1.5.0)
156+
safe_yaml (1.0.4)
150157
shoulda-matchers (4.0.0.rc1)
151158
activesupport (>= 4.2.0)
152159
spring (2.0.2)
@@ -165,6 +172,10 @@ GEM
165172
thread_safe (0.3.6)
166173
tzinfo (1.2.5)
167174
thread_safe (~> 0.1)
175+
webmock (3.4.2)
176+
addressable (>= 2.3.6)
177+
crack (>= 0.3.2)
178+
hashdiff
168179
webpacker (3.5.5)
169180
activesupport (>= 4.2)
170181
rack-proxy (>= 0.6.1)
@@ -193,6 +204,7 @@ DEPENDENCIES
193204
spring
194205
spring-watcher-listen (~> 2.0.0)
195206
tzinfo-data
207+
webmock
196208
webpacker
197209

198210
RUBY VERSION

spec/spec_helper.rb

+2-14
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
1-
# This file was generated by the `rails generate rspec:install` command. Conventionally, all
2-
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3-
# The generated `.rspec` file contains `--require spec_helper` which will cause
4-
# this file to always be loaded, without a need to explicitly require it in any
5-
# files.
6-
#
7-
# Given that it is always loaded, you are encouraged to keep this file as
8-
# light-weight as possible. Requiring heavyweight dependencies from this file
9-
# will add to the boot time of your test suite on EVERY test run, even for an
10-
# individual file that may not need all of that loaded. Instead, consider making
11-
# a separate helper file that requires the additional dependencies and performs
12-
# the additional setup, and require it from the spec files that actually need
13-
# it.
14-
#
1+
require 'webmock/rspec'
2+
153
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
164
RSpec.configure do |config|
175
# rspec-expectations config goes here. You can use an alternate

0 commit comments

Comments
 (0)