Sha256: 54ac6074ab6ac9fe6f58336bd5b154bdbe9b644d51d67651c609aef77a0702c1
Contents?: true
Size: 585 Bytes
Versions: 22
Compression:
Stored size: 585 Bytes
Contents
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(Hx::Path::ALL) {}.should == @null_source end it "enumerates no entry paths" do @null_source.each_entry(Hx::Path::ALL) 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
Version data entries
22 entries across 22 versions & 1 rubygems