require File.expand_path(File.dirname(__FILE__) + '/spec_helper') require 'hx' describe Hx::NullInput do before(:each) do @null_source = Hx::NullInput.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_INPUT do it "is an instance of Hx::NullInput" do Hx::NULL_INPUT.should be_an_instance_of(Hx::NullInput) end end