add user document model
This commit is contained in:
@@ -23,4 +23,8 @@ RSpec.describe(User, type: :model) do
|
||||
it { is_expected.to(validate_presence_of(:last_name)) }
|
||||
it { is_expected.to(validate_presence_of(:email)) }
|
||||
end
|
||||
|
||||
describe "associations" do
|
||||
it { is_expected.to(have_many(:documents)) }
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user