From 08f4586f75c161eecc518f6544537d490c355423 Mon Sep 17 00:00:00 2001 From: Asutosh Palai Date: Thu, 30 Jun 2016 21:09:49 +0530 Subject: Spec fixes for older versions --- lib/bundler/source/path/installer.rb | 2 +- spec/bundler/plugin/api/source_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bundler/source/path/installer.rb b/lib/bundler/source/path/installer.rb index 4fc5c807..abc46d5a 100644 --- a/lib/bundler/source/path/installer.rb +++ b/lib/bundler/source/path/installer.rb @@ -24,7 +24,7 @@ module Bundler end def post_install - SharedHelpers.chdir(gem_dir) do + SharedHelpers.chdir(@gem_dir) do run_hooks(:pre_install) unless @disable_extentions diff --git a/spec/bundler/plugin/api/source_spec.rb b/spec/bundler/plugin/api/source_spec.rb index 70b4843e..7f610d66 100644 --- a/spec/bundler/plugin/api/source_spec.rb +++ b/spec/bundler/plugin/api/source_spec.rb @@ -13,7 +13,7 @@ describe Bundler::Plugin::API::Source do describe "attributes" do it "allows access to uri" do - expect(source.uri).to be("uri://to/test") + expect(source.uri).to eq("uri://to/test") end it "allows access to name" do -- cgit v1.2.3