Sha256: 595954507fcfd5b551f778a61edbcff02d30663e03d188d2df699ef1eb414980

Contents?: true

Size: 453 Bytes

Versions: 3

Compression:

Stored size: 453 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

RSpec.describe ActsAsRecursiveTree::Builders::Leaves do
  context 'without additional setup' do
    it_behaves_like 'build recursive query'
    it_behaves_like 'descendant query'
    include_context 'without ordering'
  end

  context 'with options' do
    include_context 'with enforced ordering setup' do
      let(:ordering) { true }
      it_behaves_like 'not adding ordering'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
acts_as_recursive_tree-4.1.0 spec/acts_as_recursive_tree/builders/leaves_spec.rb
acts_as_recursive_tree-4.0.0 spec/acts_as_recursive_tree/builders/leaves_spec.rb
acts_as_recursive_tree-3.5.0 spec/acts_as_recursive_tree/builders/leaves_spec.rb