From 844fb2024690c06f3152336ffbcafb920853b175 Mon Sep 17 00:00:00 2001 From: Andrew Kuklewicz Date: Tue, 1 Oct 2024 18:17:09 -0400 Subject: [PATCH] fix that test with an actual feed --- test/models/megaphone/config_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/models/megaphone/config_test.rb b/test/models/megaphone/config_test.rb index 3e1da3bed..3e1e62dee 100644 --- a/test/models/megaphone/config_test.rb +++ b/test/models/megaphone/config_test.rb @@ -3,7 +3,8 @@ describe Megaphone::Config do describe "#valid?" do it "must have required attributes" do - config = build(:megaphone_config, feed_id: 123) + feed = create(:feed) + config = build(:megaphone_config, feed: feed) assert_not_nil config.token assert_not_nil config.network_id assert_not_nil config.feed_id