Skip to content

Commit 3dee8d6

Browse files
committed
Transform .name_from_url test to FormulaCreator.new
1 parent 6c09a59 commit 3dee8d6

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Library/Homebrew/test/formula_creator_spec.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require "formula_creator"
44

55
RSpec.describe Homebrew::FormulaCreator do
6-
describe ".name_from_url" do
6+
describe ".new" do
77
tests = {
88
"generic tarball URL": {
99
url: "http://digit-labs.org/files/tools/synscan/releases/synscan-5.02.tar.gz",
@@ -29,9 +29,6 @@
2929

3030
tests.each do |description, test|
3131
it "parses #{description}" do
32-
t = described_class.name_from_url(test[:url])
33-
expect(t).to eq(test[:expected])
34-
3532
fc = described_class.new(url: test[:url])
3633
expect(fc.name).to eq(test[:expected])
3734
end

0 commit comments

Comments
 (0)