-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System specs support #92
Conversation
264c152
to
42e4b7f
Compare
lib/solidus_dev_support/templates/extension/spec/spec_helper.rb.tt
Outdated
Show resolved
Hide resolved
0e62a41
to
87d9b59
Compare
This will permit to use methods like `stub_authorization!` in system specs. Only for Solidus < 2.11, because another PR is going to update the system specs configuration on the next releases.
87d9b59
to
e313040
Compare
|
||
config.when_first_matching_example_defined(type: :system) do | ||
config.before :suite do | ||
dev_support_assets_preload |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about using https://github.com/solidusio/solidus/blob/138bf619647b125a53c8898fce6d01a9dee2c7a2/core/lib/spree/testing_support/precompiled_assets.rb for Solidus >= 2.11?
Hi @blocknotes, love this! Let me know if you need any help here to move this in. Thanks! |
I didn't have a chance to work more on this one, sorry. @peterberkenbosch feel free to contribute if you can/like. |
@blocknotes No problem Mattia, I can take this on no problem. |
Working on this here #107 we can close this one. Thanks again for starting this @blocknotes |
Summary
This PR proposes small improvements to support system specs.
Checklist