Sha256: 171caadcb32a37b8540b4a6a1771155a193293266d1a49c9b9df282c57e015ff
Contents?: true
Size: 467 Bytes
Versions: 23
Compression:
Stored size: 467 Bytes
Contents
require 'test_helper' class ItemDecoratorsTest < ActiveSupport::TestCase MockEngine = BentoSearch::MockEngine ################ # ABove here, old style decorators on their way out. Below, new: ########### test "decorator specified in configuration" do @engine = MockEngine.new(:for_display => {:decorator => "TestDecorator"}) results = @engine.search("query") assert_equal "TestDecorator", results.first.decorator end end
Version data entries
23 entries across 23 versions & 1 rubygems