Sha256: 6a3bd93bc5ecf2c9d2c8417759523de4d26efcc67056a9e9429df64cb6f07954

Contents?: true

Size: 585 Bytes

Versions: 6

Compression:

Stored size: 585 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'hx'
require 'ostruct'
require 'spec'
require 'spec/autorun'

class FakeSource
  include Hx::Source

  def initialize
    @entries = {}
  end

  def add_entry(path, content, metadata={})
    entry = OpenStruct.new(metadata)
    entry.content = content
    @entries[path] = entry
  end

  def each_entry
    @entries.each { |path, entry| yield path, entry }
    self
  end

  def get_entry(path)
    @entries[path]
  end
end

Spec::Runner.configure do |config|
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

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