<% require_asset 'spec_helper' %>

# 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
<% ENV['OPAL_SPEC'].split(',').each do |s| %>
  <% if File.directory?(s) %>
    <% Dir.glob(s + "/**/*_spec.{rb, opal}").each do |file| %>
      <% require_asset file %>
    <% end %>
  <% else %>
    <% require_asset s %>
  <% end %>
<% end %>

<% File.read('spec/rubyspecs').split("\n").each do |s| %>
  <% require_asset s %>
<% end %>

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


<% require_asset 'spec_helper' %>

# 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
<% ENV['OPAL_SPEC'].split(',').each do |s| %>
  <% if File.directory?(s) %>
    <% Dir.glob(s + "/**/*_spec.{rb, opal}").each do |file| %>
      <% require_asset file %>
    <% end %>
  <% else %>
    <% require_asset s %>
  <% end %>
<% end %>

<% File.read('spec/rubyspecs').split("\n").reject(&:empty?).each do |s| %>
  <% require_asset s %>
<% end %>

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


Allow empty lines in spec/rubyspecs
Allow empty lines in spec/rubyspecs
