mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 22:46:22 +02:00
Merge pull request #2449 from internetee/2441-delete-auction
Admin: option to delete auction record
This commit is contained in:
commit
a64582c1a8
5 changed files with 28 additions and 3 deletions
|
@ -170,4 +170,15 @@ class AdminAreaAuctionIntegrationTest < ApplicationSystemTestCase
|
|||
find(:id, "reserved-modal", match: :first).click
|
||||
assert_text 'Reserved domains'
|
||||
end
|
||||
|
||||
def test_delete_auction
|
||||
visit admin_auctions_path
|
||||
domain = Auction.first
|
||||
|
||||
find(:id, "delete-auction-#{domain.id}", match: :first).click
|
||||
|
||||
assert_raises ActiveRecord::RecordNotFound do
|
||||
domain.reload
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue