Sha256: 06df50965500216abe533641bbdf76c2167ab82409abdaa593a74e9b5717ed5c
Contents?: true
Size: 776 Bytes
Versions: 8
Compression:
Stored size: 776 Bytes
Contents
RSpec.feature 'Admin orders', type: :feature do background do create(:store) sign_in_as! create(:admin_user) 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 FactoryGirl.create(:country) expect { visit spree.new_admin_order_path }.not_to raise_error end # Regression #203 scenario 'can not edit orders' do expect { visit spree.edit_admin_order_path('nodata') }.to raise_error(ActiveRecord::RecordNotFound) 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