mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
parent
18be71b519
commit
7d94273a5e
6 changed files with 3 additions and 64 deletions
|
@ -1,18 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe 'admin price destroy', settings: false do
|
||||
let!(:price) { create(:price) }
|
||||
|
||||
before :example do
|
||||
sign_in_to_admin_area
|
||||
end
|
||||
|
||||
it 'deletes price' do
|
||||
expect { delete admin_price_path(price) }.to change { Billing::Price.count }.from(1).to(0)
|
||||
end
|
||||
|
||||
it 'redirects to :index' do
|
||||
delete admin_price_path(price)
|
||||
expect(response).to redirect_to admin_prices_url
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue