diff --git a/Library/Homebrew/test/search_spec.rb b/Library/Homebrew/test/search_spec.rb index 11f5d2c9dc7a53..caaf34b652ffd1 100644 --- a/Library/Homebrew/test/search_spec.rb +++ b/Library/Homebrew/test/search_spec.rb @@ -63,11 +63,11 @@ let(:args) { instance_double("args") } context "with api" do - def api_formulae + let(:api_formulae) do { "testball" => { "desc" => "Some test" } } end - def api_casks + let(:api_casks) do { "testball" => { "desc" => "Some test", "name" => ["Test Ball"] } } end