diff --git a/Gemfile b/Gemfile index f075b4d8..548d01b8 100644 --- a/Gemfile +++ b/Gemfile @@ -51,7 +51,7 @@ group :test do gem 'capybara' gem 'database_cleaner' gem 'poltergeist' - gem 'simplecov', '~> 0.7.1', require: false + gem 'simplecov', '~> 0.17.1', require: false gem 'webmock', '~> 3.2.1' end diff --git a/Gemfile.lock b/Gemfile.lock index 64623feb..29c352c2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -109,7 +109,7 @@ GEM sort_alphabetical (~> 1.0) crack (0.4.3) safe_yaml (~> 1.0.0) - crass (1.0.4) + crass (1.0.5) database_cleaner (1.7.0) debug_inspector (0.0.3) descendants_tracker (0.0.4) @@ -121,6 +121,7 @@ GEM responders warden (~> 1.2.3) diff-lcs (1.3) + docile (1.3.2) dotenv (2.2.2) dotenv-rails (2.2.2) dotenv (= 2.2.2) @@ -178,6 +179,7 @@ GEM rails-dom-testing (>= 1, < 3) railties (>= 4.2.0) thor (>= 0.14, < 2.0) + json (2.3.0) kaminari (1.1.1) activesupport (>= 4.1.0) kaminari-actionview (= 1.1.1) @@ -197,7 +199,7 @@ GEM rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) ruby_dep (~> 1.2) - loofah (2.3.0) + loofah (2.4.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) mail (2.7.1) @@ -213,12 +215,11 @@ GEM mini_portile2 (2.4.0) minitest (5.12.2) msgpack (1.3.1) - multi_json (1.13.1) mustermann (1.0.3) mustermann-grape (1.0.0) mustermann (~> 1.0.0) - nio4r (2.4.0) - nokogiri (1.10.4) + nio4r (2.5.2) + nokogiri (1.10.7) mini_portile2 (~> 2.4.0) orm_adapter (0.5.0) pg (1.1.4) @@ -235,12 +236,13 @@ GEM coderay (~> 1.1.0) method_source (~> 0.9.0) public_suffix (3.1.1) - puma (4.1.0) + puma (4.3.1) nio4r (~> 2.0) - rack (2.0.7) + rack (2.0.8) rack-accept (0.4.5) rack (>= 0.4) - rack-cors (1.0.3) + rack-cors (1.1.0) + rack (>= 2.0.0) rack-jsonp (1.3.1) rack rack-proxy (0.6.5) @@ -324,10 +326,11 @@ GEM simple_form (5.0.1) actionpack (>= 5.0) activemodel (>= 5.0) - simplecov (0.7.1) - multi_json (~> 1.0) - simplecov-html (~> 0.7.1) - simplecov-html (0.7.1) + simplecov (0.17.1) + docile (~> 1.1) + json (>= 1.8, < 3) + simplecov-html (~> 0.10.0) + simplecov-html (0.10.2) sixarm_ruby_unaccent (1.2.0) sort_alphabetical (1.1.0) unicode_utils (>= 1.2.2) @@ -414,7 +417,7 @@ DEPENDENCIES sassc-rails sdoc simple_form (~> 5.0) - simplecov (~> 0.7.1) + simplecov (~> 0.17.1) turbolinks tzinfo-data uglifier (>= 1.3.0) diff --git a/spec/api/v1/restrooms_spec.rb b/spec/api/v1/restrooms_spec.rb index 5e3ec181..8dd2ea53 100644 --- a/spec/api/v1/restrooms_spec.rb +++ b/spec/api/v1/restrooms_spec.rb @@ -24,7 +24,7 @@ edit.update(approved: false, edit_id: 1) get '/api/v1/restrooms' - expect(response).to be_success + expect(response).to be_successful json = JSON.parse(response.body) expect(json.length).to eq(1)