mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
Use inflector rule to acronym Api to API
This commit is contained in:
parent
42004f933f
commit
06f5eb10d4
25 changed files with 44 additions and 43 deletions
|
@ -1,16 +1,16 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe ApiUser do
|
||||
RSpec.describe APIUser do
|
||||
context 'with invalid attribute' do
|
||||
before do
|
||||
@api_user = ApiUser.new
|
||||
@api_user = APIUser.new
|
||||
end
|
||||
|
||||
it 'should not be valid' do
|
||||
@api_user.valid?
|
||||
@api_user.errors.full_messages.should match_array([
|
||||
"Password Password is missing",
|
||||
"Password is too short (minimum is #{ApiUser.min_password_length} characters)",
|
||||
"Password is too short (minimum is #{APIUser.min_password_length} characters)",
|
||||
"Registrar Registrar is missing",
|
||||
"Username Username is missing",
|
||||
"Roles is missing"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue