-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add requests test for favorite merchant and date merchant by items sold
- Loading branch information
1 parent
8a547cf
commit c80693c
Showing
8 changed files
with
547 additions
and
244 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
app/controllers/api/v1/merchants/customers_with_pending_invoices_controller.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Api::V1::Merchants::CustomersWithPendingInvoicesController < ApplicationController | ||
|
||
def index | ||
render json: Merchant.customers_with_pending_invoices(params[:merchant_id]) | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"result": { | ||
"covered_percent": 95.38 | ||
"covered_percent": 96.25 | ||
} | ||
} |
Oops, something went wrong.