Sha256: 7963ecd3338ad6fb102b05a1102eb1431a03a78b2bba3d2da9666da314827d10
Contents?: true
Size: 505 Bytes
Versions: 4
Compression:
Stored size: 505 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 expect(pane.weight).to eq(101) end end end
Version data entries
4 entries across 4 versions & 1 rubygems