Sha256: 09123cb9da350276434719999fb854bed0459611721b0b6738736f71060a1af9

Contents?: true

Size: 500 Bytes

Versions: 4

Compression:

Stored size: 500 Bytes

Contents

module ThinkingSphinx
  module Panes; end
end

require 'thinking_sphinx/panes/weight_pane'

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

  describe '#weight' do
    it "returns the object's weight by default" do
      raw[ThinkingSphinx::SphinxQL.weight[:column]] = 101

      pane.weight.should == 101
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thinking-sphinx-3.2.0 spec/thinking_sphinx/panes/weight_pane_spec.rb
thinking-sphinx-3.1.4 spec/thinking_sphinx/panes/weight_pane_spec.rb
thinking-sphinx-3.1.3 spec/thinking_sphinx/panes/weight_pane_spec.rb
thinking-sphinx-3.1.2 spec/thinking_sphinx/panes/weight_pane_spec.rb