Refactor prices

#475
This commit is contained in:
Artur Beljajev 2017-04-26 00:51:06 +03:00
parent 5fdc1938af
commit 5a533e09bf
44 changed files with 1027 additions and 375 deletions

View file

@ -0,0 +1,16 @@
require 'rails_helper'
RSpec.feature 'Deleting price in admin area', settings: false do
given!(:price) { create(:price) }
background do
sign_in_to_admin_area
end
scenario 'deletes price' do
visit admin_prices_url
click_link_or_button t('admin.billing.prices.price.delete_btn')
expect(page).to have_text(t('admin.billing.prices.destroy.destroyed'))
end
end