Cleanup specs
This commit is contained in:
		
							parent
							
								
									6d1fafae13
								
							
						
					
					
						commit
						91ddb6e53d
					
				@ -1,7 +1,6 @@
 | 
				
			|||||||
# frozen_string_literal: true
 | 
					# frozen_string_literal: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
describe Cask::Artifact::Manpage, :cask do
 | 
					describe Cask::Artifact::Manpage, :cask do
 | 
				
			||||||
  let(:cask_token) { "" }
 | 
					 | 
				
			||||||
  let(:cask) { Cask::CaskLoader.load(cask_path(cask_token)) }
 | 
					  let(:cask) { Cask::CaskLoader.load(cask_path(cask_token)) }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  context "without section" do
 | 
					  context "without section" do
 | 
				
			||||||
@ -22,8 +21,7 @@ describe Cask::Artifact::Manpage, :cask do
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    let(:source_path) { cask.staged_path.join("manpage.1") }
 | 
					    let(:source_path) { cask.staged_path.join("manpage.1") }
 | 
				
			||||||
    let(:expected_section) { "" }
 | 
					    let(:target_path) { cask.config.manpagedir.join("man1/manpage.1") }
 | 
				
			||||||
    let(:target_path) { cask.config.manpagedir.join("man#{expected_section}/manpage.#{expected_section}") }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    before do
 | 
					    before do
 | 
				
			||||||
      InstallHelper.install_without_artifacts(cask)
 | 
					      InstallHelper.install_without_artifacts(cask)
 | 
				
			||||||
@ -31,7 +29,6 @@ describe Cask::Artifact::Manpage, :cask do
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    context "with autodetected section" do
 | 
					    context "with autodetected section" do
 | 
				
			||||||
      let(:cask_token) { "with-autodetected-manpage-section" }
 | 
					      let(:cask_token) { "with-autodetected-manpage-section" }
 | 
				
			||||||
      let(:expected_section) { 1 }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
      it "links the manpage to the proper directory" do
 | 
					      it "links the manpage to the proper directory" do
 | 
				
			||||||
        install_phase.call
 | 
					        install_phase.call
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user