bento_search 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,6 +35,16 @@ class StdItemTest < ActionView::TestCase
35
35
 
36
36
  assert_select ".bento_index", :text => "15."
37
37
  end
38
+
39
+ def test_has_html_id_when_index_and_engine_id
40
+ results = BentoSearch::Results.new
41
+ results.start = 9
42
+ results << (item = BentoSearch::ResultItem.new(:title => "Some Title", :engine_id => "some_engine"))
43
+
44
+ render :partial => "bento_search/std_item", :object => item, :as => "item", :locals => { :results => results, :item_counter => 5}
45
+
46
+ assert_select("#some_engine_15")
47
+ end
38
48
 
39
49
  def test_complete_article_item
40
50
  hash = {}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bento_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Rochkind
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-22 00:00:00.000000000 Z
11
+ date: 2013-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails