Sha256: 79d68bdc8ed46a83ce33e32c8b5ad25e3bda1fd4b03edfe775dc0a3957e82cfe
Contents?: true
Size: 486 Bytes
Versions: 9
Compression:
Stored size: 486 Bytes
Contents
require 'spec_helper' describe Nutmeg::TreeFromJson do before(:each) do data = File.open([Dir.pwd, "/spec/files/tree.json"].join).read @tree_from_json = Nutmeg::TreeFromJson.new(data) end describe "#initialize" do it "verifies initialize works correctly" do expect(@tree_from_json.tree.class).to eq(Nutmeg::TagTree) expect(([:tag_id, :tag, :slug, :name] - @tree_from_json.tree.original.each_leaf.first.content.keys).empty?).to eq(true) end end end
Version data entries
9 entries across 9 versions & 1 rubygems