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
Version | Path |
---|---|
bento_search-0.9.0 | test/unit/item_decorators_test.rb |
bento_search-0.8.0 | test/unit/item_decorators_test.rb |
bento_search-0.7.0 | test/unit/item_decorators_test.rb |