Sha256: 87369aed9a61ee087239dda523fd13044cb9188b9e59fdfe2e40c80274de4032

Contents?: true

Size: 561 Bytes

Versions: 6

Compression:

Stored size: 561 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hx-0.6.1 spec/nullsource_spec.rb
hx-0.6.0 spec/nullsource_spec.rb
hx-0.5.0 spec/nullsource_spec.rb
hx-0.4.1 spec/nullsource_spec.rb
hx-0.3.3 spec/nullsource_spec.rb
hx-0.3.2 spec/nullsource_spec.rb