Sha256: 6cda5a52529385600afe438b4ac42da648f06c0b03409713782e07ff3fe3c54c

Contents?: true

Size: 523 Bytes

Versions: 15

Compression:

Stored size: 523 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

      pane.sphinx_attributes.should == {'foo' => 24}
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
thinking-sphinx-3.2.0 spec/thinking_sphinx/panes/attributes_pane_spec.rb
thinking-sphinx-3.1.4 spec/thinking_sphinx/panes/attributes_pane_spec.rb
thinking-sphinx-3.1.3 spec/thinking_sphinx/panes/attributes_pane_spec.rb
thinking-sphinx-3.1.2 spec/thinking_sphinx/panes/attributes_pane_spec.rb
thinking-sphinx-3.1.1 spec/thinking_sphinx/panes/attributes_pane_spec.rb
thinking-sphinx-3.1.0 spec/thinking_sphinx/panes/attributes_pane_spec.rb
thinking-sphinx-3.0.6 spec/thinking_sphinx/panes/attributes_pane_spec.rb
thinking-sphinx-3.0.5 spec/thinking_sphinx/panes/attributes_pane_spec.rb
thinking-sphinx-3.0.4 spec/thinking_sphinx/panes/attributes_pane_spec.rb
thinking-sphinx-3.0.3 spec/thinking_sphinx/panes/attributes_pane_spec.rb
thinking-sphinx-3.0.2 spec/thinking_sphinx/panes/attributes_pane_spec.rb
thinking-sphinx-3.0.1 spec/thinking_sphinx/panes/attributes_pane_spec.rb
thinking-sphinx-3.0.0 spec/thinking_sphinx/panes/attributes_pane_spec.rb
thinking-sphinx-3.0.0.rc spec/thinking_sphinx/panes/attributes_pane_spec.rb
thinking-sphinx-3.0.0.pre spec/thinking_sphinx/panes/attributes_pane_spec.rb