Merge pull request #10659 from issyl0/fix-mismatched-test-descriptions
test/rubocops: Fix mismatched test descriptions
This commit is contained in:
		
						commit
						7a0effdf6f
					
				@ -65,7 +65,7 @@ describe RuboCop::Cop::FormulaAudit::BottleFormat do
 | 
			
		||||
    RUBY
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  it "reports and corrects old `sha256` syntax in `bottle` block without cellars" do
 | 
			
		||||
  it "reports and corrects old `sha256` syntax in `bottle` block with cellars" do
 | 
			
		||||
    expect_offense(<<~RUBY)
 | 
			
		||||
      class Foo < Formula
 | 
			
		||||
        url "https://brew.sh/foo-1.0.tgz"
 | 
			
		||||
 | 
			
		||||
@ -42,7 +42,7 @@ describe RuboCop::Cop::FormulaAudit::OptionDeclarations do
 | 
			
		||||
      RUBY
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    it "reports an offense when `build.without?` is used for a conditional dependency" do
 | 
			
		||||
    it "reports an offense when `build.with?` is used for a conditional dependency" do
 | 
			
		||||
      expect_offense(<<~RUBY)
 | 
			
		||||
        class Foo < Formula
 | 
			
		||||
          depends_on "bar" if build.with?("baz")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user