mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 13:19:39 +02:00
Fix linting issues and update API key test for source validation
- Remove trailing whitespace in auth controller and mobile device model - Update API key test to expect new validation message with source 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
9336719242
commit
8296e10246
4 changed files with 7 additions and 5 deletions
|
@ -146,7 +146,7 @@ class ApiKeyTest < ActiveSupport::TestCase
|
|||
)
|
||||
|
||||
assert_not second_key.valid?
|
||||
assert_includes second_key.errors[:user], "can only have one active API key"
|
||||
assert_includes second_key.errors[:user], "can only have one active API key per source (web)"
|
||||
end
|
||||
|
||||
test "should allow user to have new active key after revoking old one" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue