Sha256: b2297625ae5d337c8e85f8e91dca5e96a329d93c3484898ae2a3e81c76ae61ee

Contents?: true

Size: 757 Bytes

Versions: 7

Compression:

Stored size: 757 Bytes

Contents

RSpec.feature 'Admin orders', type: :feature do

  background do
    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

7 entries across 7 versions & 1 rubygems

Version Path
solidus_auth_devise-1.3.0 spec/features/admin/orders_spec.rb
solidus_auth_devise-1.2.3 spec/features/admin/orders_spec.rb
solidus_auth_devise-1.2.2 spec/features/admin/orders_spec.rb
solidus_auth_devise-1.2.1 spec/features/admin/orders_spec.rb
solidus_auth_devise-1.2.0 spec/features/admin/orders_spec.rb
solidus_auth_devise-1.1.0 spec/features/admin/orders_spec.rb
solidus_auth_devise-1.0.0 spec/features/admin/orders_spec.rb