Sha256: 35220877a8ee93cfdb97fd2041e6e7dd1150dfc6f0a4542be958029d6ac11e30

Contents?: true

Size: 411 Bytes

Versions: 17

Compression:

Stored size: 411 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe ThinkingSphinx::ActiveRecord::Association do
  let(:association) { ThinkingSphinx::ActiveRecord::Association.new column }
  let(:column)      { double('column', :__stack => [:users], :__name => :post) }

  describe '#stack' do
    it "returns the column's stack and name" do
      expect(association.stack).to eq([:users, :post])
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
thinking-sphinx-5.6.0 spec/thinking_sphinx/active_record/association_spec.rb
thinking-sphinx-5.5.1 spec/thinking_sphinx/active_record/association_spec.rb
thinking-sphinx-5.5.0 spec/thinking_sphinx/active_record/association_spec.rb
thinking-sphinx-5.4.0 spec/thinking_sphinx/active_record/association_spec.rb
thinking-sphinx-5.3.0 spec/thinking_sphinx/active_record/association_spec.rb
thinking-sphinx-5.2.1 spec/thinking_sphinx/active_record/association_spec.rb
thinking-sphinx-5.2.0 spec/thinking_sphinx/active_record/association_spec.rb
thinking-sphinx-5.1.0 spec/thinking_sphinx/active_record/association_spec.rb
thinking-sphinx-5.0.0 spec/thinking_sphinx/active_record/association_spec.rb
thinking-sphinx-4.4.1 spec/thinking_sphinx/active_record/association_spec.rb
thinking-sphinx-4.4.0 spec/thinking_sphinx/active_record/association_spec.rb
thinking-sphinx-4.3.2 spec/thinking_sphinx/active_record/association_spec.rb
thinking-sphinx-4.3.1 spec/thinking_sphinx/active_record/association_spec.rb
thinking-sphinx-4.3.0 spec/thinking_sphinx/active_record/association_spec.rb
thinking-sphinx-4.2.0 spec/thinking_sphinx/active_record/association_spec.rb
thinking-sphinx-4.1.0 spec/thinking_sphinx/active_record/association_spec.rb
thinking-sphinx-4.0.0 spec/thinking_sphinx/active_record/association_spec.rb