mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 14:36:22 +02:00
add option to delete auction record
This commit is contained in:
parent
487cbb1774
commit
75df2212da
5 changed files with 30 additions and 3 deletions
|
@ -170,4 +170,17 @@ class AdminAreaAuctionIntegrationTest < ApplicationSystemTestCase
|
|||
find(:id, "reserved-modal", match: :first).click
|
||||
assert_text 'Reserved domains'
|
||||
end
|
||||
|
||||
def test_delete_auction
|
||||
visit admin_auctions_path
|
||||
domain = reserved_domains(:one)
|
||||
|
||||
fill_in 'domain', with: domain.name
|
||||
find(:id, 'new-auction-btn', match: :first).click
|
||||
click_link_or_button 'Delete'
|
||||
|
||||
assert_raises ActiveRecord::RecordNotFound do
|
||||
domain.reload
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue