Skip to content

Tests crash on a new solidus project with solidus_starter_frontend and stripe #314

@abumalick

Description

@abumalick

When I create a new rails project and install solidus with starter and stripe, the tests crash

Solidus Version:

4.1.1

To Reproduce

rails new -T amazing_store
cd amazing_store 
bundle add solidus
bin/rails generate solidus:install 
# choose starter and stripe

bundle exec rspec

Current behavior

I get this error:

An error occurred while loading ./spec/system/frontend/solidus_stripe/checkout_spec.rb.
Failure/Error: include SolidusStarterFrontend::System::CheckoutHelpers

NameError:
  uninitialized constant SolidusStarterFrontend::System
# ./spec/support/solidus_stripe/checkout_test_helper.rb:6:in `<module:CheckoutTestHelper>'
# ./spec/support/solidus_stripe/checkout_test_helper.rb:5:in `<main>'
# ./spec/solidus_stripe_spec_helper.rb:6:in `block in <main>'
# ./spec/solidus_stripe_spec_helper.rb:6:in `each'
# ./spec/solidus_stripe_spec_helper.rb:6:in `<main>'
# ./spec/system/frontend/solidus_stripe/checkout_spec.rb:3:in `<main>'
Run options: include {:focus=>true}

All examples were filtered out; ignoring {:focus=>true}


Finished in 0.00004 seconds (files took 4.02 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples

Expected behavior

I expect the tests to run (when I choose paypal as payment method it works)

Screenshots
image

Desktop (please complete the following information):

  • OS: macOS Ventura
  • Browser: N/A
  • Version: N/A

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions