From c99af19d859d22c1fa66cfeae631454e1356a470 Mon Sep 17 00:00:00 2001 From: silviu-simeria Date: Wed, 17 May 2017 11:05:47 +0100 Subject: [PATCH] Fixed a test throwing undefined `split` for nil class --- .../devise_token_auth/passwords_controller_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/controllers/devise_token_auth/passwords_controller_test.rb b/test/controllers/devise_token_auth/passwords_controller_test.rb index 75fa8c518..f3dc394d8 100644 --- a/test/controllers/devise_token_auth/passwords_controller_test.rb +++ b/test/controllers/devise_token_auth/passwords_controller_test.rb @@ -83,9 +83,9 @@ class DeviseTokenAuth::PasswordsControllerTest < ActionController::TestCase @data = JSON.parse(response.body) end - test 'response should not contain extra data' do - assert_equal @data['data'], nil - end + test 'response should not contain extra data' do + assert_nil @data["data"] + end end