Sha256: 4fc1462b8b391207086e051e468f22cf45feeb41dd53ae9aec0139007b0ce0a3

Contents?: true

Size: 515 Bytes

Versions: 6

Compression:

Stored size: 515 Bytes

Contents

require 'rake'

module Opal
  module RSpec
    class PostRackLocator
      def initialize(pre_run_locator)
        @spec_pattern = pre_run_locator.spec_pattern
        @spec_exclude_pattern = pre_run_locator.spec_exclude_pattern
        @spec_files = pre_run_locator.spec_files
      end

      def get_opal_spec_requires
        files = @spec_files || FileList[*@spec_pattern].exclude(*@spec_exclude_pattern)
        files.uniq.map do |file|
          File.expand_path file
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
opal-rspec-0.6.2 lib/opal/rspec/post_rack_locator.rb
opal-rspec-0.6.1 lib/opal/rspec/post_rack_locator.rb
opal-rspec-0.6.0 lib/opal/rspec/post_rack_locator.rb
opal-rspec-0.6.0.beta1 lib/opal/rspec/post_rack_locator.rb
opal-connect-rspec-0.5.0 lib/opal/rspec/post_rack_locator.rb
opal-rspec-0.5.0 lib/opal/rspec/post_rack_locator.rb