mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
10 lines
354 B
Ruby
10 lines
354 B
Ruby
|
|
require 'rails_helper'
|
||
|
|
|
||
|
|
RSpec.describe UserService, type: :model do
|
||
|
|
it { is_expected.to belong_to(:user) }
|
||
|
|
it { is_expected.to belong_to(:service) }
|
||
|
|
# it { is_expected.to validate_presence_of(:price) }
|
||
|
|
# it { is_expected.to validate_presence_of(:unit) }
|
||
|
|
it { is_expected.to validate_numericality_of(:price).is_greater_than_or_equal_to(0) }
|
||
|
|
end
|