Sha256: e506d01f25b8a8b0081f183390527c5b5c984b1a11d78e29b7469bb75942d908

Contents?: true

Size: 490 Bytes

Versions: 6

Compression:

Stored size: 490 Bytes

Contents

require 'spec_helper'

RSpec.describe 'Store credits', type: :feature do
  stub_authorization!

  let(:order) { FactoryBot.create(:completed_order_with_totals) }
  let(:payment) do
    FactoryBot.create(
      :store_credit_payment,
      order: order,
      amount: 20
    )
  end

  it "viewing a store credit payment" do
    visit spree.admin_order_payment_path(order, payment)

    expect(page).to have_content "Store Credit"
    expect(page).to have_content "Amount: $20.00"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_backend-2.5.2 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.5.1 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.5.0 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.5.0.rc1 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.5.0.beta2 spec/features/admin/payments/store_credits_spec.rb
solidus_backend-2.5.0.beta1 spec/features/admin/payments/store_credits_spec.rb