mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Remove unnecessary create call in tag rule model specs
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe TagRule, type: :model do
|
||||
let!(:tag_rule) { create(:tag_rule) }
|
||||
|
||||
describe "validations" do
|
||||
it "requires a enterprise" do
|
||||
expect(tag_rule).to validate_presence_of :enterprise
|
||||
expect(subject).to validate_presence_of(:enterprise)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user