| 
									
										
										
										
											2017-02-23 06:00:46 +01:00
										 |  |  | describe "brew create", :integration_test do | 
					
						
							|  |  |  |   let(:url) { "file://#{TEST_FIXTURE_DIR}/tarballs/testball-0.1.tbz" } | 
					
						
							|  |  |  |   let(:formula_file) { CoreTap.new.formula_dir/"testball.rb" } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   it "creates a new Formula file for a given URL" do | 
					
						
							| 
									
										
										
										
											2017-07-29 19:55:05 +02:00
										 |  |  |     brew "create", url, "HOMEBREW_EDITOR" => "/bin/cat" | 
					
						
							| 
									
										
										
										
											2017-02-23 06:00:46 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     expect(formula_file).to exist | 
					
						
							|  |  |  |     expect(formula_file.read).to match(%Q(sha256 "#{TESTBALL_SHA256}")) | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |