mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 22:16:19 +02:00
fixed tests
This commit is contained in:
parent
9f69370a71
commit
120a221896
3 changed files with 6 additions and 6 deletions
|
@ -20,8 +20,8 @@ class ApiV1AuctionDetailsTest < ActionDispatch::IntegrationTest
|
|||
assert_response :ok
|
||||
assert_equal ({ 'id' => '1b3ee442-e8fe-4922-9492-8fcb9dccc69c',
|
||||
'domain' => 'auction.test',
|
||||
'status' => Auction.statuses[:no_bids] }), ActiveSupport::JSON
|
||||
.decode(response.body)
|
||||
'status' => Auction.statuses[:no_bids],
|
||||
'platform' => nil }), ActiveSupport::JSON.decode(response.body)
|
||||
end
|
||||
|
||||
def test_auction_not_found
|
||||
|
|
|
@ -15,8 +15,8 @@ class ApiV1AuctionListTest < ActionDispatch::IntegrationTest
|
|||
assert_response :ok
|
||||
assert_equal ([{ 'id' => '1b3ee442-e8fe-4922-9492-8fcb9dccc69c',
|
||||
'domain' => 'auction.test',
|
||||
'status' => Auction.statuses[:started] }]), ActiveSupport::JSON
|
||||
.decode(response.body)
|
||||
'status' => Auction.statuses[:started],
|
||||
'platform' => nil }]), ActiveSupport::JSON.decode(response.body)
|
||||
end
|
||||
|
||||
def test_does_not_return_finished_auctions
|
||||
|
|
|
@ -27,8 +27,8 @@ class ApiV1AuctionUpdateTest < ActionDispatch::IntegrationTest
|
|||
assert_response :ok
|
||||
assert_equal ({ 'id' => '1b3ee442-e8fe-4922-9492-8fcb9dccc69c',
|
||||
'domain' => 'auction.test',
|
||||
'status' => Auction.statuses[:awaiting_payment] }), ActiveSupport::JSON
|
||||
.decode(response.body)
|
||||
'status' => Auction.statuses[:awaiting_payment],
|
||||
'platform' => nil }), ActiveSupport::JSON.decode(response.body)
|
||||
end
|
||||
|
||||
def test_marks_as_awaiting_payment
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue