Sha256: fb706dc737124b3c22ea85e2577760cb552fea54cd0e3b32b18da2acb80b6dbe

Contents?: true

Size: 599 Bytes

Versions: 11

Compression:

Stored size: 599 Bytes

Contents

module ScrewUnit
  module Resources
    class Root < Resources::Dir
      attr_accessor :configuration, :options

      def initialize(configuration)
        @configuration = configuration
        super("/", asset_manager)
      end

      def asset_manager
        configuration.asset_manager
      end

      def locate(path_fragment)
        case path_fragment
        when "specs"
          SpecDir.new("/specs", configuration.asset_manager)
        when "complete"
          SuiteCompletion.new(configuration.selenium_mode?)
        else
          super
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
coolerator.vision-0.2.10 spec/support/vendor/screw-unit/lib/screw_unit/resources/root.rb
coolerator.vision-0.2.9 spec/support/vendor/screw-unit/lib/screw_unit/resources/root.rb
coolerator.vision-0.2.8 spec/support/vendor/screw-unit/lib/screw_unit/resources/root.rb
coolerator.vision-0.2.7 spec/support/vendor/screw-unit/lib/screw_unit/resources/root.rb
coolerator.vision-0.2.6 spec/support/vendor/screw-unit/lib/screw_unit/resources/root.rb
coolerator.vision-0.2.5 spec/support/vendor/screw-unit/lib/screw_unit/resources/root.rb
coolerator.vision-0.2.4 spec/support/vendor/screw-unit/lib/screw_unit/resources/root.rb
coolerator.vision-0.2.3 spec/support/vendor/screw-unit/lib/screw_unit/resources/root.rb
coolerator.vision-0.2.2 spec/support/vendor/screw-unit/lib/screw_unit/resources/root.rb
coolerator.vision-0.2.1 spec/support/vendor/screw-unit/lib/screw_unit/resources/root.rb
coolerator.vision-0.2.0 spec/support/vendor/screw-unit/lib/screw_unit/resources/root.rb