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