Sha256: cb96d1e9310d303cb7e31910be29cb196dba122474ab5715ecdb7bcea24b32fe
Contents?: true
Size: 602 Bytes
Versions: 1
Compression:
Stored size: 602 Bytes
Contents
require 'spec_helper' describe Soloist::Util do class TestClass extend Soloist::Util end describe "walk_up_and_find_file" do it "raises an error when the file isn't found" do lambda do TestClass.walk_up_and_find_file(["file_not_on_the_filesystem"]) end.should raise_error(Errno::ENOENT, "No such file or directory - file_not_on_the_filesystem not found") end it "doesn't raise an error if :required => false is passed" do TestClass.walk_up_and_find_file(["file_not_on_the_filesystem"], :required => false).should == [nil, nil] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
soloist-0.9.7 | spec/util_spec.rb |