summaryrefslogtreecommitdiff
path: root/test/support/api_integration_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/support/api_integration_test.rb')
-rw-r--r--test/support/api_integration_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/support/api_integration_test.rb b/test/support/api_integration_test.rb
index aa9c00d..0e8e261 100644
--- a/test/support/api_integration_test.rb
+++ b/test/support/api_integration_test.rb
@@ -7,7 +7,7 @@ class ApiIntegrationTest < ActionDispatch::IntegrationTest
@user ||= user ||= FactoryGirl.create(:user)
@token ||= DUMMY_TOKEN
# make sure @token is up to date if it already exists
- @token.reload if @token.persisted
+ @token.reload if @token.persisted?
@token.user_id = @user.id
@token.last_seen_at = Time.now
@token.save