 5be80a78f6
			
		
	
	
		5be80a78f6
		
			
		
	
	
	
	
		
			
			In a number of Cask specs, the value of the `homepage` stanza is currently set to https://example.com. As of 2018-11-28, the TLS certificate served by example.com seems to be expired, possibly due to an oversight on ICANN’s side. While the certificate is certainly going to be renewed soon, it would be desirable for Homebrew’s test result to be less dependent on ICANN’s actions. This commit changes the homepages of all test Casks to http://brew.sh, whose domain and TLS certificate are both controlled by Homebrew.
		
			
				
	
	
		
			26 lines
		
	
	
		
			822 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			822 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| require_relative "shared_examples/invalid_option"
 | |
| 
 | |
| describe Cask::Cmd::Home, :cask do
 | |
|   before do
 | |
|     allow(described_class).to receive(:open_url)
 | |
|   end
 | |
| 
 | |
|   it_behaves_like "a command that handles invalid options"
 | |
| 
 | |
|   it "opens the homepage for the specified Cask" do
 | |
|     expect(described_class).to receive(:open_url).with("https://brew.sh")
 | |
|     described_class.run("local-caffeine")
 | |
|   end
 | |
| 
 | |
|   it "works for multiple Casks" do
 | |
|     expect(described_class).to receive(:open_url).with("https://brew.sh")
 | |
|     expect(described_class).to receive(:open_url).with("https://brew.sh")
 | |
|     described_class.run("local-caffeine", "local-transmission")
 | |
|   end
 | |
| 
 | |
|   it "opens the project page when no Cask is specified" do
 | |
|     expect(described_class).to receive(:open_url).with("https://caskroom.github.io/")
 | |
|     described_class.run
 | |
|   end
 | |
| end
 |