Tagging model specs?

pull/32841/head
Matt Jankowski 2024-09-24 11:44:07 -04:00
parent b63887a26a
commit 87f485051e
1 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,11 @@
require 'rails_helper'
RSpec.describe Tagging do
describe 'Associations' do
it { is_expected.to belong_to(:tag).required }
it { is_expected.to belong_to(:taggable).required }
end
describe 'Validations' do
it 'validates presence of something' do
expect(subject).to_not be_valid