Skip to content

Commit

Permalink
Remove version_spec violation
Browse files Browse the repository at this point in the history
  • Loading branch information
dduugg committed Jan 23, 2023
1 parent fcc5dc5 commit 1262dd9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Library/Homebrew/test/version_spec.rb
Expand Up @@ -246,11 +246,6 @@
end

describe "::create" do
it "accepts objects responding to #to_str" do
value = double(to_str: "0.1")
expect(described_class.create(value).to_s).to eq("0.1")
end

it "raises a TypeError for non-string objects" do
expect { described_class.create(1.1) }.to raise_error(TypeError)
expect { described_class.create(1) }.to raise_error(TypeError)
Expand Down

0 comments on commit 1262dd9

Please sign in to comment.