Sha256: dcb949164b11ead80d78740866858c48c8f8d3e27c26d340af3e0be3a7efb303
Contents?: true
Size: 671 Bytes
Versions: 155
Compression:
Stored size: 671 Bytes
Contents
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') RubyProject.determine_root.should 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) RubyProject.determine_root.should eq(".") end end end end end end
Version data entries
155 entries across 100 versions & 15 rubygems