Commits

xrd committed 2a51609

Trying to fix spec

Comments (0)

Files changed (1)

spec/controllers/payment_controller_spec.rb

   end
   
   it "should retrieve the correct loan" do
-    post "payment_received", @l.code, JSON.parse( json ) #, { 'CONTENT_TYPE' => 'application/json', 'ACCEPT' => 'application/json' }
+    post "/payment/#{@l.code}", JSON.parse( json ) #, { 'CONTENT_TYPE' => 'application/json', 'ACCEPT' => 'application/json' }
     expect( @l.reload.progress ).to ne 0
   end
 end