Skip to content

Commit e1efbb9

Browse files
committed
Try and replicate issue with missing require
1 parent d2cdb3a commit e1efbb9

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

Rakefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@ task :rake_only => [:verify_rspec_specs,
2121

2222
desc 'Sanity checks a given version of MRI and run a basic check'
2323
task :mri_sanity_check => [:unit_specs,
24-
:integration_specs]
24+
:integration_specs,
25+
:verify_rake_requires]
26+
27+
desc 'Runs Rake via shell to verify requires without all of our test requires'
28+
task :verify_rake_requires do
29+
Dir.chdir 'spec/other' do
30+
sh 'rake'
31+
end
32+
end
2533

2634
desc 'Runs a set of specs in opal'
2735
Opal::RSpec::RakeTask.new(:opal_specs) do |_, task|

spec/other/Rakefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# test Rakefile for running standalone
2+
require 'opal/rspec/rake_task'
3+
4+
Opal::RSpec::RakeTask.new(:default) do |_, task|
5+
task.pattern = '*_spec.rb'
6+
# Node code path has more dependencies
7+
task.runner = :node
8+
end

0 commit comments

Comments
 (0)