Sha256: 636071dc205c3c6edaaebf1414e3744f974c0a87cab59f4ff95d0b12bc189466
Contents?: true
Size: 768 Bytes
Versions: 8
Compression:
Stored size: 768 Bytes
Contents
RSpec.feature 'Admin orders', type: :feature do background do user = create(:admin_user) log_in email: user.email, password: user.password end # Regression #203 scenario 'can list orders' do expect { visit spree.admin_orders_path }.not_to raise_error end # Regression #203 scenario 'can new orders' do expect { visit spree.new_admin_order_path }.not_to raise_error end # Regression #203 scenario 'can not edit orders' do visit spree.edit_admin_order_path('nodata') expect(page).to have_text('Order is not found') end # Regression #203 scenario 'can edit orders' do create(:order, number: 'R123') visit spree.edit_admin_order_path('R123') expect(page).not_to have_text 'Authorization Failure' end end
Version data entries
8 entries across 8 versions & 1 rubygems