Sha256: 041799311476ce771050a791ad822da6e7f27c34c0ea9f6e4dcf7e598809260e

Contents?: true

Size: 559 Bytes

Versions: 17

Compression:

Stored size: 559 Bytes

Contents

# frozen_string_literal: true

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

17 entries across 17 versions & 1 rubygems

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