Merge pull request #4989 from luisramos0/specs_in_engines

Adapt task that runs engine specs
This commit is contained in:
Luis Ramos
2020-03-16 19:17:04 +00:00
committed by GitHub
3 changed files with 1 additions and 14 deletions

View File

@@ -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 }

View File

@@ -1,3 +0,0 @@
require "../../spec/spec_helper.rb"
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

View File

@@ -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