Created
January 29, 2013 19:38
-
-
Save endoze/4667018 to your computer and use it in GitHub Desktop.
Tie this into failing Rspec tests. Will help you write better tests through brutal exposure to terrible singing.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def open_link(link) | |
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/ then | |
system("start #{link}") | |
elsif RbConfig::CONFIG['host_os'] =~ /darwin/ then | |
system("open #{link}") | |
elsif RbConfig::CONFIG['host_os'] =~ /linux/ then | |
end | |
end | |
open_link('https://www.youtube.com/watch?v=kffacxfA7G4') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just make it open this webpage