fix invalid spec

This commit is contained in:
Sam 2015-08-14 16:26:53 +10:00
parent e670ebb433
commit a246e7c9c0

View file

@ -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