Sha256: 7b68f3653c29d56703e9612f6a9dc0b2c510e4e546b8262dfad07403ad89d231
Contents?: true
Size: 986 Bytes
Versions: 4
Compression:
Stored size: 986 Bytes
Contents
require File.expand_path('../test_helper', __FILE__) describe "Kicker.parse_options" do it "should parse the paths" do Kicker.parse_options([])[:paths].should.be nil Kicker.parse_options(%w{ /some/file.rb })[:paths].should == %w{ /some/file.rb } Kicker.parse_options(%w{ /some/file.rb /a/dir /and/some/other/file.rb })[:paths].should == %w{ /some/file.rb /a/dir /and/some/other/file.rb } end it "should parse if growl shouldn't be used" do Kicker.parse_options([])[:growl].should == true Kicker.parse_options(%w{ --no-growl })[:growl].should == false end it "should parse the Growl command to use when the user clicks the Growl succeeded message" do Kicker.parse_options(%w{ --growl-command ls })[:growl_command].should == 'ls' end it "should parse the latency to pass to FSEvents" do Kicker.parse_options(%w{ -l 2.5 })[:latency].should == 2.5 Kicker.parse_options(%w{ --latency 3.5 })[:latency].should == 3.5 end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
alloy-kicker-1.9.0 | test/options_test.rb |
alloy-kicker-1.9.1 | test/options_test.rb |
alloy-kicker-1.9.2 | test/options_test.rb |
alloy-kicker-1.9.3 | test/options_test.rb |