Sha256: 8be314fedabc47acfbd6c19df195a2ac7884fd85f9f54d3476b292e0b82ef872

Contents?: true

Size: 369 Bytes

Versions: 5

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

5 entries across 5 versions & 3 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/polyamorous-1.2.0/spec/polyamorous/join_spec.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/polyamorous-1.2.0/spec/polyamorous/join_spec.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/polyamorous-1.2.0/spec/polyamorous/join_spec.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/polyamorous-1.2.0/spec/polyamorous/join_spec.rb
polyamorous-1.2.0 spec/polyamorous/join_spec.rb