Skip to content
Snippets Groups Projects
Commit 88676633 authored by Markus Reiter's avatar Markus Reiter
Browse files

Use `described_class` in `Tap` spec.

parent 5fbccc03
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ RSpec::Matchers.alias_matcher :have_custom_remote, :be_custom_remote
describe Tap do
include FileUtils
subject { Tap.new("Homebrew", "foo") }
subject { described_class.new("Homebrew", "foo") }
let(:path) { Tap::TAP_DIRECTORY/"homebrew/homebrew-foo" }
let(:formula_file) { path/"Formula/foo.rb" }
let(:alias_file) { path/"Aliases/bar" }
......@@ -84,7 +84,7 @@ describe Tap do
end
end
specify "#names" do
specify "::names" do
expect(described_class.names.sort).to eq(["homebrew/core", "homebrew/foo"])
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment