Sha256: 91a39eac95abad35441fa828870c5f63c736610a0bc1cd2faf68791e6283c0c4

Contents?: true

Size: 555 Bytes

Versions: 4

Compression:

Stored size: 555 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe DeliveryReceiptsController do

  describe "GET 'update'" do
    
    it "should update status 'delivered'" do
      delivery_receipt = DeliveryReceipt.new
      delivery_receipt.stub!(:save)
      DeliveryReceipt.stub!(:find_by_tracking_id).and_return(delivery_receipt)
      get :report, :trackingid => "fc444ec93ac7ebdf6a93816a11d23041", :status => 'delivered', :destination => '0046707293123'
      delivery_receipt.status.should eql("delivered")
    end
    
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jnstq-acts_as_sms-0.1.0 test/spec/controllers/delivery_receipts_controller_spec.rb
jnstq-acts_as_sms-0.1.1 test/spec/controllers/delivery_receipts_controller_spec.rb
jnstq-acts_as_sms-0.1.3 test/spec/controllers/delivery_receipts_controller_spec.rb
jnstq-acts_as_sms-0.1.4 test/spec/controllers/delivery_receipts_controller_spec.rb