Sha256: 9c8a8c720e041da24ce34ff8e3a20ff42f8209b97a2777cb30d59f4fd81f4809

Contents?: true

Size: 492 Bytes

Versions: 1

Compression:

Stored size: 492 Bytes

Contents

require 'spec_helper'

describe Nutmeg::TreeFromJson do

  before(:each) do
    data = JSON.load(File.open([Dir.pwd, "/spec/files/tree.json"].join))
    @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

1 entries across 1 versions & 1 rubygems

Version Path
nutmeg-0.0.7 spec/tree_from_json_spec.rb