Remove unnecessary create call in tag rule model specs

This commit is contained in:
Arun Kumar Mohan
2020-09-21 00:55:41 -05:00
parent 714bfafede
commit 289fd09e20

View File

@@ -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