Sha256: 2ee7da8efdc844ac51eebe91f6775f084855847e481981b0e1d57f86f3484fa8
Contents?: true
Size: 647 Bytes
Versions: 3
Compression:
Stored size: 647 Bytes
Contents
require 'rspec' require File.dirname(__FILE__) + '/../lib/soloist' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
soloist-0.9.6 | spec/util_spec.rb |
soloist-0.9.5 | spec/util_spec.rb |
soloist-0.9.4 | spec/util_spec.rb |