Sha256: 2299344c6d5a0b7efead089596fb8a89beb6c5ce1cb1b894a9e15aa1ccc0f1f1
Contents?: true
Size: 533 Bytes
Versions: 16
Compression:
Stored size: 533 Bytes
Contents
require 'spec_helper' require 'file-sandbox' require 'valise/search-root' describe Valise::SearchRoot do include FileSandbox before do sandbox.new :directory => "test" sandbox.new :file => "test/file", :with_contents => "TEST" end let :search_root do Valise::SearchRoot.new("test") end it "should find a file in the root" do search_root.present?(%w{file}).should be_true end it "should raise PathNotInRoot if path isn't in root" do search_root.present?(%w{nothere}).should be_false end end
Version data entries
16 entries across 16 versions & 1 rubygems