Convert brew formula test to spec.
				
					
				
			This commit is contained in:
		
							parent
							
								
									c7121f6be5
								
							
						
					
					
						commit
						a3b2ae1fa1
					
				
							
								
								
									
										10
									
								
								Library/Homebrew/test/dev-cmd/formula_spec.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								Library/Homebrew/test/dev-cmd/formula_spec.rb
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
			
		||||
describe "brew formula", :integration_test do
 | 
			
		||||
  it "prints a given Formula's path" do
 | 
			
		||||
    formula_file = setup_test_formula "testball"
 | 
			
		||||
 | 
			
		||||
    expect { brew "formula", "testball" }
 | 
			
		||||
      .to output("#{formula_file}\n").to_stdout
 | 
			
		||||
      .and not_to_output.to_stderr
 | 
			
		||||
      .and be_a_success
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
@ -1,8 +0,0 @@
 | 
			
		||||
require "testing_env"
 | 
			
		||||
 | 
			
		||||
class IntegrationCommandTestFormula < IntegrationCommandTestCase
 | 
			
		||||
  def test_formula
 | 
			
		||||
    formula_file = setup_test_formula "testball"
 | 
			
		||||
    assert_equal formula_file.to_s, cmd("formula", "testball")
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user