Sha256: 7f57e9dd2bd3cc50c11f47d372bb35e3b8c9ae05ac1c34e7df8d44dc796228d6

Contents?: true

Size: 582 Bytes

Versions: 2

Compression:

Stored size: 582 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe "SmsNotify::MessageResponse" do
  it "should return a new instance with empty attributes when initialized" do
    r = SmsNotify::MessageResponse.new({})
    r.response_id.should == nil
    r.text_id.should == nil
    r.message.should == nil
  end

  it "should only contain attributes that describe a message response" do
    attrs = {"xmlns" => 'foo', "StatusCode" => '1'}
    r = SmsNotify::MessageResponse.new(attrs)
    r.respond_to?('xmlns').should be false
    r.status_code.should == '1'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cdyne-sms-notify-1.0.6 spec/message_response_spec.rb
cdyne-sms-notify-1.0.4 spec/message_response_spec.rb