crystal-lang / crystal

The Crystal Programming Language
https://crystal-lang.org
Apache License 2.0
19.2k stars 1.61k forks source link

Remove incorrect uses of `describe` #14757

Closed HertzDevil closed 4 days ago

HertzDevil commented 5 days ago

A small number of specs pass both the class name and the method name as separate arguments to describe:

class Foo
  def bar
  end
end

describe Foo, "#bar" do
end

But describe doesn't work like that and the method name is treated as a file name instead. This PR turns those specs back to the conventional form:

describe Foo do
  describe "#bar" do
  end
end