Sha256: 4cd4a604815aaef2e2132f48834135abbfea990492d2916c6731afb516838498
Contents?: true
Size: 598 Bytes
Versions: 4
Compression:
Stored size: 598 Bytes
Contents
require 'spec_helper' require 'parallel_tests/cli' describe ParallelTest::CLI do describe ".parse_options" do let(:defaults){ {:files => []} } def call(*args) ParallelTest::CLI.send(:parse_options!, *args) end it "parses regular count" do call(["-n3"]).should == defaults.merge(:count => 3) end it "parses count 0 as non-parallel" do call(["-n0"]).should == defaults.merge(:non_parallel => true) end it "parses non-parallel as non-parallel" do call(["--non-parallel"]).should == defaults.merge(:non_parallel => true) end end end
Version data entries
4 entries across 4 versions & 1 rubygems