Sha256: 2fb09072be7c23398963b4d3b0fcaed5a082c8b38b75a5eaed67cf51d7bf435c
Contents?: true
Size: 886 Bytes
Versions: 4
Compression:
Stored size: 886 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "SmsNotify MessageStatus" do it "should not have attributes that do not describe a message status" do SmsNotify::MessageStatus.new({:foo=>'bar'}).respond_to?('foo').should be false end it "should have attributes that describe a message status" do SmsNotify::MessageStatus.new({:status_code=>'6'}).status_code.should == '6' end describe "fatal_error?" do it "should return true when the status_code describes a message that will not be delivered" do status = SmsNotify::MessageStatus.new({:status_code=>'3'}) status.fatal_error?.should be true end it "should return false when the status_code describes a message that will be delivered" do status = SmsNotify::MessageStatus.new({:status_code=>'5'}) status.fatal_error?.should be false end end end
Version data entries
4 entries across 4 versions & 1 rubygems