Sha256: 07d61ec6e97dda3b70757a4118cda18fcc48616f652d0d331380c19b969d6db5
Contents?: true
Size: 669 Bytes
Versions: 16
Compression:
Stored size: 669 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 == '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 == '.' end end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems