# Modeled after opal-rspec's sprockets_runner

require 'opal'
require 'opal-rspec'

<% Dir.glob('spec/{browser,shoes}/**/*_spec.{rb,opal}').each do |s| %>
require <%= s.sub(/^spec\//, '').sub(/\.(rb|opal)$/, '').inspect %>
<% end %>

RSpec.configure do |config|
  config.filter_run_excluding :no_opal, :no_browser
end

Opal::RSpec::Runner.autorun

# Modeled after opal-rspec's sprockets_runner

require 'opal'
require 'opal-rspec'

# Enumerate the specs we want to run, so we can turn them on/off easily.
# To run all of the specs, you'd replace this with
#     Dir.glob('spec/{browser,shoes}/**/*_spec.{rb,opal}')
<%
  active_specs = [
    'spec/shoes/app_spec.rb',
  ]
%>
<% active_specs.each do |path| %>
require <%= path.sub(/^spec\//, '').sub(/\.(rb|opal)$/, '').inspect %>
<% end %>

RSpec.configure do |config|
  config.filter_run_excluding :no_opal, :no_browser
end

Opal::RSpec::Runner.autorun

Enumerate specs to run explicitly
Enumerate specs to run explicitly

This means we can add specs to the repository directly even when we
can't run them yet. This should make it easier to stay in sync with
upstream.
