Sha256: 6bd9181c221cf7d69de47a54011fa3636bafa101a7f5bb51d079e29337c84d73
Contents?: true
Size: 609 Bytes
Versions: 5
Compression:
Stored size: 609 Bytes
Contents
require 'rails_helper' module Mks module Rate RSpec.describe ServiceRate, type: :model do it 'has valid factory' do expect(create(:service_rate)).to be_valid end it 'is invalid without utilization rate' do expect(build(:service_rate, utilization_rate: nil)).not_to be_valid end it 'is invalid without base rate' do expect(build(:service_rate, base_rate: nil)).not_to be_valid end it 'is invalid without chargeable service' do expect(build(:service_rate, chargeable_service_id: nil)).not_to be_valid end end end end
Version data entries
5 entries across 5 versions & 1 rubygems