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