diff options
| author | Markus Reiter | 2017-03-05 19:19:35 +0100 |
|---|---|---|
| committer | GitHub | 2017-03-05 19:19:35 +0100 |
| commit | 6165f88e28a0390c38fcbe68badb7e225831ea97 (patch) | |
| tree | 0cfd532a9a9505b1e56b569462ab472bb5888f46 | |
| parent | 5fbccc03a7d496e75e83742d0c7e606a4db131ab (diff) | |
| parent | 88676633ef5ad8fe1c9166686e206329d694de84 (diff) | |
| download | brew-6165f88e28a0390c38fcbe68badb7e225831ea97.tar.bz2 | |
Merge pull request #2265 from reitermarkus/spec-tap
Use `described_class` in `Tap` spec.
| -rw-r--r-- | Library/Homebrew/test/tap_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/tap_spec.rb b/Library/Homebrew/test/tap_spec.rb index b0ad1506d..50e4522af 100644 --- a/Library/Homebrew/test/tap_spec.rb +++ b/Library/Homebrew/test/tap_spec.rb @@ -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 |
