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.
- checksums.yaml +8 -8
- data/app/item_decorators/bento_search/standard_decorator.rb +14 -0
- data/app/search_engines/bento_search/ebsco_host_engine.rb +2 -0
- data/app/search_engines/bento_search/primo_engine.rb +4 -6
- data/app/views/bento_search/_item_title.html.erb +9 -1
- data/app/views/bento_search/_std_item.html.erb +7 -2
- data/lib/bento_search/version.rb +1 -1
- data/test/decorator/standard_decorator_test.rb +19 -0
- data/test/dummy/log/test.log +7384 -0
- data/test/search_engines/primo_engine_test.rb +9 -1
- data/test/vcr_cassettes/primo/proper_tags_for_snippets.yml +519 -397
- data/test/vcr_cassettes/primo/search_smoke_test.yml +912 -569
- data/test/view/std_item_test.rb +10 -0
- metadata +2 -2
data/test/view/std_item_test.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2013-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|