Sha256: 2cbae9aaf90e210eb21a79016322f96a88378da2b5df9a6c035e4d5021d87d14
Contents?: true
Size: 769 Bytes
Versions: 5
Compression:
Stored size: 769 Bytes
Contents
require File.join(File.dirname(__FILE__),"spec_helper.rb") describe Launchy::Spawnable::Browser do it "should find a path to a executable" do File.executable?(Launchy::Spawnable::Browser.new.browser).should == true end it "should handle an http url" do Launchy::Spawnable::Browser.handle?("http://www.example.com") == true end it "should handle an https url" do Launchy::Spawnable::Browser.handle?("https://www.example.com") == true end it "should handle an ftp url" do Launchy::Spawnable::Browser.handle?("ftp://download.example.com") == true end it "should not handle a mailto url" do Launchy::Spawnable::Browser.handle?("mailto:jeremy@example.com") == false end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
launchy-0.1.0 | spec/browser_spec.rb |
launchy-0.1.1 | spec/browser_spec.rb |
launchy-0.2.0 | spec/browser_spec.rb |
launchy-0.1.2 | spec/browser_spec.rb |
launchy-0.2.1 | spec/browser_spec.rb |