Sha256: a05398121f2dc627bada4cc9ae82c553188134211caa1c0f76fa940766124d28

Contents?: true

Size: 469 Bytes

Versions: 8

Compression:

Stored size: 469 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['@weight'] = 101

      pane.weight.should == 101
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
thinking-sphinx-3.0.5 spec/thinking_sphinx/panes/weight_pane_spec.rb
thinking-sphinx-3.0.4 spec/thinking_sphinx/panes/weight_pane_spec.rb
thinking-sphinx-3.0.3 spec/thinking_sphinx/panes/weight_pane_spec.rb
thinking-sphinx-3.0.2 spec/thinking_sphinx/panes/weight_pane_spec.rb
thinking-sphinx-3.0.1 spec/thinking_sphinx/panes/weight_pane_spec.rb
thinking-sphinx-3.0.0 spec/thinking_sphinx/panes/weight_pane_spec.rb
thinking-sphinx-3.0.0.rc spec/thinking_sphinx/panes/weight_pane_spec.rb
thinking-sphinx-3.0.0.pre spec/thinking_sphinx/panes/weight_pane_spec.rb