mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #4989 from luisramos0/specs_in_engines
Adapt task that runs engine specs
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
ENV["RAILS_ENV"] = "test"
|
||||
|
||||
require "order_management"
|
||||
require "../../spec/spec_helper"
|
||||
|
||||
# Require factories in Spree and main application.
|
||||
require 'spree/testing_support/factories'
|
||||
require '../../spec/factories'
|
||||
|
||||
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
||||
@@ -1,3 +0,0 @@
|
||||
require "../../spec/spec_helper.rb"
|
||||
|
||||
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
||||
@@ -10,7 +10,7 @@ namespace :ofn do
|
||||
end
|
||||
|
||||
def execute_rspec_for_engine(engine_path)
|
||||
system "cd #{engine_path.expand_path} && DISABLE_KNAPSACK=true bundle exec rspec"
|
||||
system "DISABLE_KNAPSACK=true bundle exec rspec #{engine_path.expand_path}/spec"
|
||||
end
|
||||
|
||||
engine_paths = detect_engine_paths
|
||||
|
||||
Reference in New Issue
Block a user