mirror of https://github.com/tootsuite/mastodon
Tagging model specs?
parent
b63887a26a
commit
87f485051e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue