Sha256: eaf73b99a7e6a469a7bc87fad2c4309e7d0750781254244c7726ad3bc017252e

Contents?: true

Size: 285 Bytes

Versions: 2

Compression:

Stored size: 285 Bytes

Contents

dir = File.dirname(__FILE__)

module JsSpec
  module Resources
    class Runners
      def locate(name)
        if name == 'firefox'
          FirefoxRunner.new(Server.request, Server.response)
        else
          raise "Invalid path #{name}"
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
js_spec-0.2.0 lib/js_spec/resources/runners.rb
js_spec-0.2.1 lib/js_spec/resources/runners.rb