spec/unit/git/alternates_spec.rb in r10k-1.3.5 vs spec/unit/git/alternates_spec.rb in r10k-1.4.0
- old
+ new
@@ -59,10 +59,10 @@
describe "and the git objects/info directory exists" do
let(:io) { StringIO.new }
before do
expect(subject.file).to receive(:open).with('w').and_yield(io)
- subject.file.stub_chain(:parent, :directory?).and_return true
+ expect(subject.file).to receive_message_chain(:parent, :directory?).and_return true
end
it "creates the alternates file with the new entry when not present" do
expect(subject).to receive(:to_a).and_return([])