Sha256: 4be1ccfe677b2acc6a4768c295e92e41b42e1d440804af8c2d1e53624286b232
Contents?: true
Size: 607 Bytes
Versions: 29
Compression:
Stored size: 607 Bytes
Contents
require 'hashery' require 'awestruct/handlers/file_handler' require 'awestruct/handlers/yaml_handler' describe Awestruct::Handlers::YamlHandler do before :all do @site = Hashery::OpenCascade[ { :encoding=>false } ] end it "should provide access to the yaml as front-matter" do filename = Pathname.new( test_data_dir 'simple-data.yaml' ) file_handler = Awestruct::Handlers::FileHandler.new( @site, filename ) handler = Awestruct::Handlers::YamlHandler.new( @site, file_handler ) handler.raw_content.should be_nil handler.front_matter['taco'].should == 'deluxe' end end
Version data entries
29 entries across 29 versions & 1 rubygems