Skip to content

Commit

Permalink
fix that test with an actual feed
Browse files Browse the repository at this point in the history
  • Loading branch information
kookster committed Oct 1, 2024
1 parent 9ca679c commit 844fb20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/models/megaphone/config_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 844fb20

Please sign in to comment.