Sha256: 34cc31e40f143fd9ccaca21a49aedb53f7fdc1bb1dd9156b70c25ef5331ef3cd

Contents?: true

Size: 518 Bytes

Versions: 1

Compression:

Stored size: 518 Bytes

Contents

require 'spec_helper'
require 'harp2hugo'

describe(Harp2Hugo::Converter) do

  it "should load json data and create a new file" do
    Dir.chdir("spec")
    harp2hugo = Harp2Hugo::Converter.new "_data.json"

    harp2hugo.convert "output"

    result_file = "output/Spit-up-on-light-gray-carpet-instead-of-adjacent-linoleum-chew-iPad-power-cord.md"
    expect(File.exists?result_file).to be_truthy

    expected_file = "output.md"
    expect(FileUtils.compare_file(result_file, expected_file)).to be_truthy
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
harp2hugo-0.0.4 spec/harp2hugo_spec.rb