Sha256: c09aea8d901c6fab001a6470a54f84e501950097a5d043acfd09ad124916e4a1
Contents?: true
Size: 883 Bytes
Versions: 8
Compression:
Stored size: 883 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({:StatusCode=>'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({:StatusCode=>'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({:StatusCode=>'5'}) status.fatal_error?.should be false end end end
Version data entries
8 entries across 8 versions & 1 rubygems