mirror of
https://github.com/we-promise/sure.git
synced 2026-04-14 01:24:06 +00:00
Fix remaining rubocop offenses
- Fix string literal style in doorkeeper.rb - Add missing final newlines - Remove trailing whitespace - Fix array bracket spacing in migrations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -39,7 +39,7 @@ class Api::V1::AuthControllerTest < ActionDispatch::IntegrationTest
|
||||
assert_equal "newuser@example.com", response_data["user"]["email"]
|
||||
assert_equal "New", response_data["user"]["first_name"]
|
||||
assert_equal "User", response_data["user"]["last_name"]
|
||||
|
||||
|
||||
# OAuth token assertions
|
||||
assert response_data["access_token"].present?
|
||||
assert response_data["refresh_token"].present?
|
||||
@@ -217,7 +217,7 @@ class Api::V1::AuthControllerTest < ActionDispatch::IntegrationTest
|
||||
|
||||
assert_equal user.id.to_s, response_data["user"]["id"]
|
||||
assert_equal user.email, response_data["user"]["email"]
|
||||
|
||||
|
||||
# OAuth token assertions
|
||||
assert response_data["access_token"].present?
|
||||
assert response_data["refresh_token"].present?
|
||||
@@ -351,7 +351,7 @@ class Api::V1::AuthControllerTest < ActionDispatch::IntegrationTest
|
||||
user = users(:family_admin)
|
||||
device = user.mobile_devices.create!(@device_info)
|
||||
oauth_app = device.create_oauth_application!
|
||||
|
||||
|
||||
# Create initial token
|
||||
initial_token = Doorkeeper::AccessToken.create!(
|
||||
application: oauth_app,
|
||||
@@ -407,4 +407,4 @@ class Api::V1::AuthControllerTest < ActionDispatch::IntegrationTest
|
||||
response_data = JSON.parse(response.body)
|
||||
assert_equal "Refresh token is required", response_data["error"]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user