Sha256: 2ab487fcd998e458355ba75a9b17c734ced65eb28b666b35286f3191ec0b96a6

Contents?: true

Size: 580 Bytes

Versions: 8

Compression:

Stored size: 580 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

8 entries across 8 versions & 1 rubygems

Version Path
cdyne-sms-notify-1.0.3 spec/message_response_spec.rb
cdyne-sms-notify-1.0.2 spec/message_response_spec.rb
cdyne-sms-notify-1.0.1 spec/message_response_spec.rb
cdyne-sms-notify-1.0.0 spec/message_response_spec.rb
cdyne-sms-notify-0.10.1 spec/message_response_spec.rb
cdyne-sms-notify-0.10.0 spec/message_response_spec.rb
cdyne-sms-notify-0.9.6 spec/message_response_spec.rb
cdyne-sms-notify-0.8.5 spec/message_response_spec.rb