Sha256: d615f1f860a7acac5dd03ed2bb41a791031cea8522d20b5b90945868336e93fe

Contents?: true

Size: 369 Bytes

Versions: 1

Compression:

Stored size: 369 Bytes

Contents

require 'spec_helper'

module Polyamorous
  describe Join do
    it "is a tree node" do
      join = new_join(:articles, :outer)
      expect(join).to be_kind_of(TreeNode)
    end

    it "can be add to a tree" do
      join = new_join(:articles, :outer)

      tree_hash = {}
      join.add_to_tree(tree_hash)

      expect(tree_hash[join]).to be {}
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polyamorous-1.1.0 spec/polyamorous/join_spec.rb