spec/dineromail/notification_spec.rb in dineromail-0.1.4 vs spec/dineromail/notification_spec.rb in dineromail-0.2.0

- old
+ new

@@ -7,9 +7,15 @@ notifications.count.should == 2 notifications.first.transaction_id.should == 1889 notifications.last.transaction_id.should == 5547 end + it 'should allow alphanumeric transaction ids' do + notification_xml = File.read( 'spec/fixtures/notification_alphanumeric_id.xml') + notifications = Dineromail::Notification.parse(notification_xml) + notifications.first.transaction_id.should == 'ABC123' + end + it 'should get automaticaly the status data associated with the notification' do HTTParty.stub!(:get).and_return { stub :body => File.read( 'spec/fixtures/status_report.xml') } notification_xml = File.read( 'spec/fixtures/notification.xml')