dawarich/spec/models/visit_spec.rb

16 lines
359 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2024-07-21 14:32:29 -04:00
require 'rails_helper'
RSpec.describe Visit, type: :model do
describe 'associations' do
it { is_expected.to belong_to(:area) }
it { is_expected.to belong_to(:user) }
it { is_expected.to have_many(:points).dependent(:nullify) }
end
describe 'factory' do
it { expect(build(:visit)).to be_valid }
end
2024-07-21 14:32:29 -04:00
end