Sha256: 091b2c935eb15c116e3f30dbd603a8c7f0cf27749b70f68a85cac4ac73309c34

Contents?: true

Size: 528 Bytes

Versions: 4

Compression:

Stored size: 528 Bytes

Contents

module ThinkingSphinx
  module Panes; end
end

require 'thinking_sphinx/panes/attributes_pane'

describe ThinkingSphinx::Panes::AttributesPane do
  let(:pane)    {
    ThinkingSphinx::Panes::AttributesPane.new context, object, raw }
  let(:context) { double('context') }
  let(:object)  { double('object') }
  let(:raw)     { {} }

  describe '#sphinx_attributes' do
    it "returns the object's sphinx attributes by default" do
      raw['foo'] = 24

      expect(pane.sphinx_attributes).to eq({'foo' => 24})
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thinking-sphinx-3.4.2 spec/thinking_sphinx/panes/attributes_pane_spec.rb
thinking-sphinx-3.4.1 spec/thinking_sphinx/panes/attributes_pane_spec.rb
thinking-sphinx-3.4.0 spec/thinking_sphinx/panes/attributes_pane_spec.rb
thinking-sphinx-3.3.0 spec/thinking_sphinx/panes/attributes_pane_spec.rb