From a246e7c9c0c2361e63d95d929c020257176afd27 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 14 Aug 2015 16:26:53 +1000 Subject: [PATCH] fix invalid spec --- spec/jobs/feature_topic_users_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/jobs/feature_topic_users_spec.rb b/spec/jobs/feature_topic_users_spec.rb index 5bd04a1f274..8bc9da9dac3 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