diff --git a/spec/jobs/feature_topic_users_spec.rb b/spec/jobs/feature_topic_users_spec.rb index 5bd04a1f2..8bc9da9da 100644 --- a/spec/jobs/feature_topic_users_spec.rb +++ b/spec/jobs/feature_topic_users_spec.rb @@ -8,8 +8,8 @@ describe Jobs::FeatureTopicUsers do expect { Jobs::FeatureTopicUsers.new.execute({}) }.to raise_error(Discourse::InvalidParameters) end - it "raises an error with a missing topic_id" do - expect { Jobs::FeatureTopicUsers.new.execute(topic_id: 123) }.to raise_error(Discourse::InvalidParameters) + it "raises no error with a missing topic_id" do + Jobs::FeatureTopicUsers.new.execute(topic_id: 123) end context 'with a topic' do