test/test_api.rb in textmagic-0.4.0 vs test/test_api.rb in textmagic-0.5.0

- old
+ new

@@ -93,11 +93,11 @@ should "raise an error if format of any of the specified phone numbers is invalid" do TextMagic::API.expects(:validate_phones).returns(false) lambda { @api.send(@text, random_string) }.should raise_error(TextMagic::API::Error) end - should "raise an error if text is empty" do - lambda { @api.send("", @phone) }.should raise_error(TextMagic::API::Error) + should "raise an error if text is nil" do + lambda { @api.send(nil, @phone) }.should raise_error(TextMagic::API::Error) end should "raise an error if text is too long" do TextMagic::API.expects(:validate_text_length).returns(false) lambda { @api.send(@text, @phone) }.should raise_error(TextMagic::API::Error)