Sha256: 09146a7a7600dd993439516d4154b61f449b516dffd26303f5894737b856b556
Contents?: true
Size: 702 Bytes
Versions: 47
Compression:
Stored size: 702 Bytes
Contents
require 'spec_helper' module RSpec module Core describe RubyProject do describe "#determine_root" do context "with ancestor containing spec directory" do it "returns ancestor containing the spec directory" do RubyProject.stub(:ascend_until).and_return('foodir') expect(RubyProject.determine_root).to eq("foodir") end end context "without ancestor containing spec directory" do it "returns current working directory" do RubyProject.stub(:find_first_parent_containing).and_return(nil) expect(RubyProject.determine_root).to eq(".") end end end end end end
Version data entries
47 entries across 47 versions & 12 rubygems