Fix specs
This commit is contained in:
		
							parent
							
								
									3b9ae4c95e
								
							
						
					
					
						commit
						56ce625ef1
					
				| @ -241,7 +241,7 @@ RSpec.describe Tab do | |||||||
|       tab = described_class.from_file(path) |       tab = described_class.from_file(path) | ||||||
|       source_path = "/usr/local/Library/Taps/homebrew/homebrew-core/Formula/foo.rb" |       source_path = "/usr/local/Library/Taps/homebrew/homebrew-core/Formula/foo.rb" | ||||||
|       runtime_dependencies = [{ "full_name" => "foo", "version" => "1.0" }] |       runtime_dependencies = [{ "full_name" => "foo", "version" => "1.0" }] | ||||||
|       changed_files = %w[INSTALL_RECEIPT.json bin/foo] |       changed_files = %w[INSTALL_RECEIPT.json bin/foo].map { Pathname.new(_1) } | ||||||
| 
 | 
 | ||||||
|       expect(tab.used_options.sort).to eq(used_options.sort) |       expect(tab.used_options.sort).to eq(used_options.sort) | ||||||
|       expect(tab.unused_options.sort).to eq(unused_options.sort) |       expect(tab.unused_options.sort).to eq(unused_options.sort) | ||||||
| @ -271,7 +271,7 @@ RSpec.describe Tab do | |||||||
|       tab = described_class.from_file_content(path.read, path) |       tab = described_class.from_file_content(path.read, path) | ||||||
|       source_path = "/usr/local/Library/Taps/homebrew/homebrew-core/Formula/foo.rb" |       source_path = "/usr/local/Library/Taps/homebrew/homebrew-core/Formula/foo.rb" | ||||||
|       runtime_dependencies = [{ "full_name" => "foo", "version" => "1.0" }] |       runtime_dependencies = [{ "full_name" => "foo", "version" => "1.0" }] | ||||||
|       changed_files = %w[INSTALL_RECEIPT.json bin/foo] |       changed_files = %w[INSTALL_RECEIPT.json bin/foo].map { Pathname.new(_1) } | ||||||
| 
 | 
 | ||||||
|       expect(tab.used_options.sort).to eq(used_options.sort) |       expect(tab.used_options.sort).to eq(used_options.sort) | ||||||
|       expect(tab.unused_options.sort).to eq(unused_options.sort) |       expect(tab.unused_options.sort).to eq(unused_options.sort) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Douglas Eichelberger
						Douglas Eichelberger