test-tab: tap is a Tap object now
Closes Homebrew/homebrew#46735. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
		
							parent
							
								
									fe032e3e96
								
							
						
					
					
						commit
						ed35c18fcf
					
				@ -59,7 +59,7 @@ class TabTests < Homebrew::TestCase
 | 
			
		||||
 | 
			
		||||
  def test_other_attributes
 | 
			
		||||
    assert_equal TEST_SHA1, @tab.HEAD
 | 
			
		||||
    assert_equal "Homebrew/homebrew", @tab.tap
 | 
			
		||||
    assert_equal "Homebrew/homebrew", @tab.tap.name
 | 
			
		||||
    assert_nil @tab.time
 | 
			
		||||
    refute_predicate @tab, :built_as_bottle
 | 
			
		||||
    assert_predicate @tab, :poured_from_bottle
 | 
			
		||||
@ -73,7 +73,7 @@ class TabTests < Homebrew::TestCase
 | 
			
		||||
    assert_equal @unused.sort, tab.unused_options.sort
 | 
			
		||||
    refute_predicate tab, :built_as_bottle
 | 
			
		||||
    assert_predicate tab, :poured_from_bottle
 | 
			
		||||
    assert_equal "Homebrew/homebrew", tab.tap
 | 
			
		||||
    assert_equal "Homebrew/homebrew", tab.tap.name
 | 
			
		||||
    assert_equal :stable, tab.spec
 | 
			
		||||
    refute_nil tab.time
 | 
			
		||||
    assert_equal TEST_SHA1, tab.HEAD
 | 
			
		||||
@ -89,7 +89,7 @@ class TabTests < Homebrew::TestCase
 | 
			
		||||
    assert_equal @unused.sort, tab.unused_options.sort
 | 
			
		||||
    refute_predicate tab, :built_as_bottle
 | 
			
		||||
    assert_predicate tab, :poured_from_bottle
 | 
			
		||||
    assert_equal "Homebrew/homebrew", tab.tap
 | 
			
		||||
    assert_equal "Homebrew/homebrew", tab.tap.name
 | 
			
		||||
    assert_equal :stable, tab.spec
 | 
			
		||||
    refute_nil tab.time
 | 
			
		||||
    assert_equal TEST_SHA1, tab.HEAD
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user