diff options
Diffstat (limited to 'Library/Homebrew/test/cask/cask_spec.rb')
| -rw-r--r-- | Library/Homebrew/test/cask/cask_spec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Homebrew/test/cask/cask_spec.rb b/Library/Homebrew/test/cask/cask_spec.rb index a8c4ecf5f..3736f3c01 100644 --- a/Library/Homebrew/test/cask/cask_spec.rb +++ b/Library/Homebrew/test/cask/cask_spec.rb @@ -24,7 +24,7 @@ describe Hbc::Cask, :cask do describe "load" do let(:tap_path) { Hbc.default_tap.path } let(:file_dirname) { Pathname.new(__FILE__).dirname } - let(:relative_tap_path) { tap_path.realpath.relative_path_from(file_dirname) } + let(:relative_tap_path) { tap_path.relative_path_from(file_dirname) } it "returns an instance of the Cask for the given token" do c = Hbc::CaskLoader.load("local-caffeine") @@ -56,9 +56,7 @@ describe Hbc::Cask, :cask do end it "returns an instance of the Cask from a relative file location" do - c = file_dirname.cd do - Hbc::CaskLoader.load(relative_tap_path/"Casks/local-caffeine.rb") - end + c = Hbc::CaskLoader.load(relative_tap_path/"Casks/local-caffeine.rb") expect(c).to be_kind_of(Hbc::Cask) expect(c.token).to eq("local-caffeine") end |
