test/dev-cmd/create: allow use of @ in cask name

This commit is contained in:
Bevan Kay 2025-03-12 19:57:27 +11:00
parent 74556fe97c
commit cbc79184ad
No known key found for this signature in database
GPG Key ID: C55CB024B5314B57

View File

@ -17,7 +17,12 @@ RSpec.describe Homebrew::DevCmd::Create do
end
it "generates valid cask tokens" do
t = Cask::Utils.token_from("A Foo@Bar_Baz++!")
expect(t).to eq("a-foo-at-bar-baz-plus-plus")
t = Cask::Utils.token_from("A FooBar_Baz++!")
expect(t).to eq("a-foobar-baz-plus-plus")
end
it "retains @ in cask tokens" do
t = Cask::Utils.token_from("test@preview")
expect(t).to eq("test@preview")
end
end