Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 1ef23d7

Browse files
committed
Add runtime check for task.timeout
This only exist in opal-rspec 0.5.0
1 parent 5e0c2ed commit 1ef23d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Opal::RSpec::RakeTask.new('opal:rspec') do |s, task|
2020
s.append_path React::Rails::AssetVariant.new(addons: true).react_directory
2121
s.append_path 'spec/vendor'
2222
s.index_path = 'spec/index.html.erb'
23-
task.timeout = 80000
23+
task.timeout = 80000 if task
2424
end
2525

2626
task :test do

0 commit comments

Comments
 (0)