Sha256: f8cb935b3624c26ccdff7316a5d35542596c40254452e29a362074079a172da7
Contents?: true
Size: 679 Bytes
Versions: 1
Compression:
Stored size: 679 Bytes
Contents
require "spec_helper" require_relative '../lib/middleman/versions/helpers/file_handler' describe "FileHandler" do it "load_file method must return a non empty hash from json file" do version_hash = Middleman::Versions::FileHandler::load_file(File.join(File.dirname(__FILE__),"../fixtures/directory_with_files/v2.json")) expect(version_hash).to include({"title" => "Usuario v2"}) end it "load_file method must return a non empty hash from yml file" do version_hash = Middleman::Versions::FileHandler::load_file(File.join(File.dirname(__FILE__),"../fixtures/directory_with_files/v1.yml")) expect(version_hash).to include({"title" => "Usuario v1"}) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
middleman-versions-1.0.0 | spec/file_handler_spec.rb |