spec/sms_receipt_spec.rb in mblox-0.2.9 vs spec/sms_receipt_spec.rb in mblox-0.3.0

- old
+ new

@@ -31,10 +31,13 @@ s.SubscriberNumber("1#{subscriber_number}") s.TimeStamp(201310071736) s.MsgReference(msg_reference) s.Status(status) s.Reason(reason) + s.Tags do |t| + t.Tag(10487, :Name => :Operator) + end end end end end xml.target! @@ -103,9 +106,10 @@ target.subscriber_number.should == subscriber_number target.timestamp.should == DateTime.new(2013,10,7,17,36) target.msg_reference.should == msg_reference target.status.should == status target.reason.should == reason + target.operator.should == 10487 end it "should raise error when missing root node" do expect{described_class.new('Abcdefg')}.to raise_error(Mblox::MissingExpectedXmlContentError, "'Abcdefg' is not parseable as XML") end