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