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