Sha256: f459f9fb27aed58bce5bbeece947fae2e6a8c7d34292a394d2e8914be678e047

Contents?: true

Size: 380 Bytes

Versions: 4

Compression:

Stored size: 380 Bytes

Contents

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

4 entries across 4 versions & 1 rubygems

Version Path
thinking-sphinx-3.4.2 spec/thinking_sphinx/active_record/association_spec.rb
thinking-sphinx-3.4.1 spec/thinking_sphinx/active_record/association_spec.rb
thinking-sphinx-3.4.0 spec/thinking_sphinx/active_record/association_spec.rb
thinking-sphinx-3.3.0 spec/thinking_sphinx/active_record/association_spec.rb