Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Commit 5365cbe

Browse files
committed
fix test
1 parent 40a30e9 commit 5365cbe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spec/models/user_spec.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# spec/models/user_spec.rb
21
require 'rails_helper'
32

43
RSpec.describe User, type: :model do
54
describe 'validations' do
65
it { should validate_presence_of(:email) }
7-
it { should validate_uniqueness_of(:username).allow_blank }
6+
it { should validate_uniqueness_of(:username) } # Removed .allow_blank
87
it { should validate_presence_of(:full_name) }
98
end
109

@@ -67,4 +66,4 @@
6766
expect(user.parsed_tags).to eq(['ruby', 'rails'])
6867
end
6968
end
70-
end
69+
end

0 commit comments

Comments
 (0)