require File.expand_path(File.dirname(__FILE__) + '/spec_helper') require 'hx' describe Hx::NullSource do before(:each) do @null_source = Hx::NullSource.new end it "should return itself from each_entry" do @null_source.each_entry {}.should == @null_source end it "enumerates no entry paths" do @null_source.each_entry do |path, entry| raise RuntimeError("No entries") end end end describe Hx::NULL_SOURCE do it "is an instance of Hx::NullSource" do Hx::NULL_SOURCE.should be_an_instance_of(Hx::NullSource) end end