| 
									
										
										
										
											2017-03-08 15:49:37 +01:00
										 |  |  | describe Hbc::CLI::Version, :cask do | 
					
						
							|  |  |  |   describe "::run" do | 
					
						
							| 
									
										
										
										
											2017-03-11 12:00:35 +01:00
										 |  |  |     it "outputs the current Homebrew-Cask version" do | 
					
						
							| 
									
										
										
										
											2017-03-08 15:49:37 +01:00
										 |  |  |       expect { described_class.run } | 
					
						
							|  |  |  |         .to output(/\AHomebrew-Cask.*\d+\.\d+\.\d+/).to_stdout | 
					
						
							|  |  |  |         .and not_to_output.to_stderr | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     it "does not support arguments" do | 
					
						
							|  |  |  |       expect { described_class.run(:foo, :bar) }.to raise_error(ArgumentError) | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |