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