lib/opal/rspec/locator.rb in opal-rspec-0.7.0 vs lib/opal/rspec/locator.rb in opal-rspec-0.7.1
- old
+ new
@@ -7,10 +7,11 @@
module Opal
module RSpec
class Locator
include ::RSpec::Core::RubyProject
- DEFAULT_PATTERN = 'spec-opal/**/*_spec{.js,}.{rb,opal}'
+ DEFAULT_GLOB = '**{,/*/**}/*_spec{.js,}.{rb,opal}'
+ DEFAULT_PATTERN = "spec-opal/#{DEFAULT_GLOB}"
DEFAULT_DEFAULT_PATH = 'spec-opal'
attr_accessor :spec_pattern, :spec_exclude_pattern, :spec_files, :default_path
def initialize(pattern: nil, exclude_pattern: nil, files: nil, default_path: nil)