Skip to content
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

Test app task: Allow passing in user class #5956

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/lib/spree/testing_support/extension_rake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

desc "Generates a dummy app for testing an extension"
namespace :extension do
task :test_app, [:user_class] do |_t, _args|
task :test_app, [:user_class] do |_t, args|

Check warning on line 7 in core/lib/spree/testing_support/extension_rake.rb

View check run for this annotation

Codecov / codecov/patch

core/lib/spree/testing_support/extension_rake.rb#L7

Added line #L7 was not covered by tests
Spree::DummyGeneratorHelper.inject_extension_requirements = true
Rake::Task['common:test_app'].invoke
Rake::Task['common:test_app'].invoke(args[:user_class])

Check warning on line 9 in core/lib/spree/testing_support/extension_rake.rb

View check run for this annotation

Codecov / codecov/patch

core/lib/spree/testing_support/extension_rake.rb#L9

Added line #L9 was not covered by tests
end
end
Loading