mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
parent
8916eee169
commit
f76e1259fc
11 changed files with 106 additions and 65 deletions
|
@ -6,14 +6,14 @@ RSpec.describe 'admin price expire', settings: false do
|
|||
end
|
||||
|
||||
it 'expires price' do
|
||||
price = create(:unexpired_price)
|
||||
price = create(:effective_price)
|
||||
|
||||
expect { patch expire_admin_price_path(price); price.reload }
|
||||
.to change { price.expired? }.from(false).to(true)
|
||||
end
|
||||
|
||||
it 'redirects to :index' do
|
||||
price = create(:unexpired_price)
|
||||
price = create(:effective_price)
|
||||
|
||||
patch expire_admin_price_path(price)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue