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-2.0.0.rc1 test/unit/item_decorators_test.rb
bento_search-1.7.0 test/unit/item_decorators_test.rb
bento_search-1.6.1 test/unit/item_decorators_test.rb
bento_search-1.7.0.beta.1 test/unit/item_decorators_test.rb
bento_search-1.6.0 test/unit/item_decorators_test.rb
bento_search-1.5.0 test/unit/item_decorators_test.rb
bento_search-1.4.4 test/unit/item_decorators_test.rb
bento_search-1.4.3 test/unit/item_decorators_test.rb
bento_search-1.4.2 test/unit/item_decorators_test.rb
bento_search-1.3.0 test/unit/item_decorators_test.rb
bento_search-1.2.2 test/unit/item_decorators_test.rb
bento_search-1.2.1 test/unit/item_decorators_test.rb
bento_search-1.2.0 test/unit/item_decorators_test.rb
bento_search-1.1.0 test/unit/item_decorators_test.rb
bento_search-1.0.6 test/unit/item_decorators_test.rb
bento_search-1.0.4 test/unit/item_decorators_test.rb
bento_search-1.0.3 test/unit/item_decorators_test.rb
bento_search-1.0.2 test/unit/item_decorators_test.rb
bento_search-1.0.1 test/unit/item_decorators_test.rb
bento_search-1.0.0 test/unit/item_decorators_test.rb