Adopt more specs to the shoulda-matchers update
This commit is contained in:
parent
dd326c5fb0
commit
11422bf73d
3 changed files with 3 additions and 3 deletions
|
|
@ -27,7 +27,7 @@ describe User do
|
|||
|
||||
it { is_expected.to validate_presence_of(:email) }
|
||||
it { is_expected.to validate_presence_of(:username) }
|
||||
it { is_expected.to validate_uniqueness_of(:username) }
|
||||
it { is_expected.to validate_uniqueness_of(:username).ignoring_case_sensitivity }
|
||||
|
||||
it 'biography can not have more than 150 words' do
|
||||
# Text with 151 words
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue