Sha256: 2593da4b146dcfaf39a0f88950a5f1340a261866304862376d364fbeeaa13daf

Contents?: true

Size: 595 Bytes

Versions: 5

Compression:

Stored size: 595 Bytes

Contents

require File.expand_path("#{File.dirname(__FILE__)}/../../unit_spec_helper")

module JsTestCore
  module Resources
    describe Runners do
      attr_reader :runner
      before do
        @runner = Runners.new
      end

      describe "#locate" do
        it "when passed 'firefox', returns a Firefox1Runner" do
          runner.locate('firefox').is_a?(Runners::FirefoxRunner).should be_true
        end

        it "when not passed 'firefox', raises an error" do
          lambda do
            runner.locate('invalid')
          end.should raise_error
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 4 rubygems

Version Path
btakita-screw-unit-server-0.3.0 vendor/js-test-core/spec/unit/js_test_core/resources/runner_spec.rb
btakita-screw_unit-0.1.0 vendor/js_test_core/spec/unit/js_spec/resources/runner_spec.rb
btakita-screw_unit-0.3.0 vendor/js-test-core/spec/unit/js_test_core/resources/runner_spec.rb
js_test_core-0.1.1 spec/unit/js_spec/resources/runner_spec.rb
screw-unit-server-0.3.0 vendor/js-test-core/spec/unit/js_test_core/resources/runner_spec.rb