Sha256: f226dd832545abfe0d492fd5b8a78cab33de8e49e183251f7566a18eb2bb4986

Contents?: true

Size: 581 Bytes

Versions: 6

Compression:

Stored size: 581 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', :status_code => '1'}
    r = SmsNotify::MessageResponse.new(attrs)
    r.respond_to?('xmlns').should be false
    r.status_code.should == '1'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cdyne-sms-notify-0.8.4 spec/message_response_spec.rb
cdyne-sms-notify-0.8.3 spec/message_response_spec.rb
cdyne-sms-notify-0.8.1 spec/message_response_spec.rb
cdyne-sms-notify-0.8.0 spec/message_response_spec.rb
cdyne-sms-notify-0.7.1 spec/message_response_spec.rb
cdyne-sms-notify-0.7.0 spec/message_response_spec.rb