<% require_asset 'opal' %>
<% require_asset 'opal-parser' %>
<% require_asset 'mspec' %>
<% require_asset 'ospec/runner' %>

# Load all opal filters
<% Dir.glob('spec/filters/**/*.rb').each do |s| %>
  <% require_asset s.sub(/^spec\//, '').sub(/\.rb$/, '') %>
<% end %>

# This file just greps for all spec files in spec/ and requires them
<% Dir.glob('spec/**/*_spec.{rb,opal}').each do |s| %>
  <% require_asset s.sub(/^spec\//, '').sub(/\.(rb|opal)$/, '') %>
<% end %>

# All specs have been run, so we notify mspec that we are done
OSpecRunner.main.did_finish


<% require_asset 'opal' %>
<% require_asset 'opal-parser' %>
<% require_asset 'mspec' %>
<% require_asset 'ospec/runner' %>

# Load all opal filters
<% Dir.glob('spec/filters/**/*.rb').each do |s| %>
  <% require_asset s.sub(/^spec\//, '').sub(/\.rb$/, '') %>
<% end %>

# This file just greps for all spec files in spec/ and requires them
<% Dir.glob("spec/#{ENV['OPAL_SPEC_DIR'] ? ENV['OPAL_SPEC_DIR'] + '/' : ''}**/*_spec.{rb,opal}").each do |s| %>
  <% require_asset s.sub(/^spec\//, '').sub(/\.(rb|opal)$/, '') %>
<% end %>

# All specs have been run, so we notify mspec that we are done
OSpecRunner.main.did_finish


Use OPAL_SPEC_DIR ENV var for specific test convenience
Use OPAL_SPEC_DIR ENV var for specific test convenience
