blacklight 4.3.0 → 4.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +0 -6
- data/Gemfile +5 -0
- data/README.md +1 -1
- data/Rakefile +0 -1
- data/VERSION +1 -1
- data/app/assets/javascripts/blacklight/autofocus.js +16 -0
- data/app/assets/javascripts/blacklight/blacklight.js +1 -0
- data/app/assets/javascripts/blacklight/bookmark_toggle.js +2 -5
- data/app/assets/javascripts/blacklight/checkbox_submit.js +3 -6
- data/app/assets/javascripts/blacklight/core.js +24 -1
- data/app/assets/javascripts/blacklight/css_dropdowns.js +2 -2
- data/app/assets/javascripts/blacklight/facet_expand_contract.js +4 -3
- data/app/assets/javascripts/blacklight/lightbox_dialog.js +7 -1
- data/app/assets/javascripts/blacklight/search_context.js +1 -1
- data/app/assets/javascripts/blacklight/select_submit.js +1 -1
- data/app/assets/javascripts/blacklight/zebra_stripe.js +1 -1
- data/app/assets/stylesheets/blacklight/_blacklight_base.css.scss +1 -0
- data/app/assets/stylesheets/blacklight/_catalog.css.scss +5 -0
- data/app/assets/stylesheets/blacklight/_facets.css.scss +6 -0
- data/app/assets/stylesheets/blacklight/_group.css.scss +14 -0
- data/app/assets/stylesheets/blacklight/blacklight_defaults.css.scss +1 -0
- data/app/controllers/bookmarks_controller.rb +2 -2
- data/app/helpers/blacklight/blacklight_helper_behavior.rb +41 -24
- data/app/helpers/blacklight/catalog_helper_behavior.rb +48 -28
- data/app/helpers/blacklight/facets_helper_behavior.rb +9 -75
- data/app/models/record_mailer.rb +1 -16
- data/app/views/bookmarks/index.html.erb +2 -0
- data/app/views/catalog/_bookmark_control.html.erb +3 -4
- data/app/views/catalog/_document.html.erb +2 -1
- data/app/views/catalog/_document_header.html.erb +6 -3
- data/app/views/catalog/_email_form.html.erb +0 -7
- data/app/views/catalog/_facet_layout.html.erb +1 -1
- data/app/views/catalog/_group_default.html.erb +12 -0
- data/app/views/catalog/_index_default.html.erb +1 -1
- data/app/views/catalog/_opensearch_response_metadata.html.erb +2 -3
- data/app/views/catalog/_paginate_compact.html.erb +2 -2
- data/app/views/catalog/_results_pagination.html.erb +2 -2
- data/app/views/catalog/_search_form.html.erb +1 -1
- data/app/views/catalog/_sms_form.html.erb +1 -21
- data/app/views/catalog/_thumbnail_default.html.erb +5 -0
- data/app/views/catalog/email_sent.html.erb +9 -0
- data/app/views/catalog/index.atom.builder +7 -8
- data/app/views/catalog/index.html.erb +6 -3
- data/app/views/catalog/librarian_view.html.erb +1 -1
- data/app/views/catalog/sms_sent.html.erb +9 -0
- data/app/views/feedback/complete.html.erb +2 -0
- data/app/views/feedback/show.html.erb +7 -5
- data/app/views/kaminari/blacklight_compact/_paginator.html.erb +1 -1
- data/app/views/layouts/blacklight.html.erb +1 -2
- data/app/views/saved_searches/index.html.erb +2 -0
- data/app/views/search_history/index.html.erb +1 -1
- data/blacklight.gemspec +1 -1
- data/config/locales/blacklight.en.yml +11 -0
- data/config/locales/blacklight.fr.yml +15 -1
- data/gemfiles/rails3.gemfile +7 -0
- data/gemfiles/rails4.gemfile +7 -0
- data/lib/blacklight.rb +1 -0
- data/lib/blacklight/catalog.rb +101 -56
- data/lib/blacklight/configuration.rb +1 -1
- data/lib/blacklight/controller.rb +7 -4
- data/lib/blacklight/facet.rb +79 -0
- data/lib/blacklight/routes.rb +0 -1
- data/lib/blacklight/solr/document.rb +4 -0
- data/lib/blacklight/solr/document/marc_export.rb +1 -1
- data/lib/blacklight/solr_helper.rb +39 -8
- data/lib/blacklight/solr_response.rb +35 -3
- data/lib/blacklight/solr_response/facets.rb +4 -0
- data/lib/blacklight/solr_response/group.rb +33 -0
- data/lib/blacklight/solr_response/group_response.rb +49 -0
- data/lib/blacklight/solr_response/pagination_methods.rb +27 -0
- data/lib/blacklight/user.rb +30 -32
- data/lib/generators/blacklight/assets_generator.rb +3 -1
- data/lib/generators/blacklight/blacklight_generator.rb +28 -125
- data/lib/generators/blacklight/marc_generator.rb +66 -0
- data/lib/generators/blacklight/models_generator.rb +113 -0
- data/lib/generators/blacklight/templates/alternate_controller.rb +9 -0
- data/lib/generators/blacklight/templates/config/solr.yml +0 -2
- data/lib/generators/blacklight/templates/solr_document.rb +1 -13
- data/lib/railties/all_tests.rake +5 -8
- data/spec/controllers/catalog_controller_spec.rb +185 -113
- data/spec/features/alternate_controller_spec.rb +34 -0
- data/spec/features/bookmarks_spec.rb +58 -0
- data/spec/features/did_you_mean_spec.rb +135 -0
- data/spec/features/librarian_view_spec.rb +13 -0
- data/spec/features/record_view_spec.rb +37 -0
- data/spec/features/saved_searches_spec.rb +47 -0
- data/spec/features/search_filters_spec.rb +137 -0
- data/spec/features/search_history_spec.rb +75 -0
- data/spec/features/search_pagination_spec.rb +91 -0
- data/spec/features/search_results_spec.rb +68 -0
- data/spec/features/search_sort_spec.rb +20 -0
- data/spec/features/search_spec.rb +108 -0
- data/spec/helpers/blacklight_helper_spec.rb +45 -2
- data/spec/helpers/catalog_helper_spec.rb +134 -1
- data/spec/helpers/facets_helper_spec.rb +8 -0
- data/spec/lib/blacklight/solr_response/group_response_spec.rb +78 -0
- data/spec/lib/blacklight/solr_response/group_spec.rb +70 -0
- data/spec/lib/blacklight_solr_response_spec.rb +11 -5
- data/spec/lib/blacklight_user_spec.rb +22 -41
- data/spec/lib/solr_helper_spec.rb +73 -1
- data/spec/models/record_mailer_spec.rb +3 -3
- data/spec/models/{solr_docment_spec.rb → solr_document_spec.rb} +1 -1
- data/spec/spec_helper.rb +0 -1
- data/spec/support/features.rb +7 -0
- data/spec/support/features/session_helpers.rb +22 -0
- data/spec/test_app_templates/Gemfile.extra +0 -4
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +0 -6
- data/spec/test_app_templates/lib/tasks/blacklight_test_app.rake +1 -9
- data/spec/views/catalog/_facets.html.erb_spec.rb +2 -1
- data/tasks/blacklight.rake +0 -10
- metadata +49 -58
- data/features/bookmarks.feature +0 -68
- data/features/did_you_mean.feature +0 -123
- data/features/librarian_view.feature +0 -18
- data/features/record_view.feature +0 -40
- data/features/saved_searches.feature +0 -49
- data/features/search.feature +0 -83
- data/features/search_filters.feature +0 -119
- data/features/search_history.feature +0 -85
- data/features/search_pagination.feature +0 -53
- data/features/search_results.feature +0 -61
- data/features/search_sort.feature +0 -27
- data/features/step_definitions/bookmarks_steps.rb +0 -6
- data/features/step_definitions/error_steps.rb +0 -5
- data/features/step_definitions/general_steps.rb +0 -50
- data/features/step_definitions/record_view_steps.rb +0 -12
- data/features/step_definitions/saved_searches_steps.rb +0 -19
- data/features/step_definitions/search_facets_steps.rb +0 -29
- data/features/step_definitions/search_history_steps.rb +0 -9
- data/features/step_definitions/search_pagination_steps.rb +0 -29
- data/features/step_definitions/search_result_steps.rb +0 -115
- data/features/step_definitions/search_steps.rb +0 -118
- data/features/step_definitions/user_steps.rb +0 -5
- data/features/step_definitions/web_steps.rb +0 -217
- data/features/support/env.rb +0 -65
- data/features/support/paths.rb +0 -48
- data/features/support/selectors.rb +0 -40
- data/lib/railties/blacklight_cucumber.rake +0 -126
- data/lib/solrmarc.log.1 +0 -854
data/spec/spec_helper.rb
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
# spec/support/features/session_helpers.rb
|
2
|
+
module Features
|
3
|
+
module SessionHelpers
|
4
|
+
def sign_up_with(email, password)
|
5
|
+
Capybara.exact = true
|
6
|
+
visit new_user_registration_path
|
7
|
+
fill_in 'Email', with: email
|
8
|
+
fill_in 'Password', with: password
|
9
|
+
fill_in 'Password confirmation', with: password
|
10
|
+
click_button 'Sign up'
|
11
|
+
end
|
12
|
+
|
13
|
+
def sign_in(login = 'user1')
|
14
|
+
email = "#{login}@#{login}.com"
|
15
|
+
user = User.create(:email => email, :password => "password", :password_confirmation => "password")
|
16
|
+
visit new_user_session_path
|
17
|
+
fill_in("user_email", :with => email)
|
18
|
+
fill_in("user_password", :with => "password")
|
19
|
+
click_button("Sign in")
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -1,5 +1,4 @@
|
|
1
1
|
platforms :jruby do
|
2
|
-
gem 'activerecord-jdbcsqlite3-adapter'
|
3
2
|
gem 'jdbc-sqlite3'
|
4
3
|
gem 'mediashelf-loggable', '>= 0.4.8'
|
5
4
|
gem 'therubyrhino'
|
@@ -14,9 +13,6 @@ gem 'jquery-rails'
|
|
14
13
|
group :test do
|
15
14
|
gem 'rspec-rails', '~> 2.13'
|
16
15
|
gem 'generator_spec'
|
17
|
-
gem 'cucumber'
|
18
|
-
gem 'cucumber-rails', :git => 'https://github.com/cucumber/cucumber-rails.git', :branch => 'master_rails4_test', :require => false
|
19
|
-
gem 'database_cleaner', '>= 1.0.1'
|
20
16
|
if defined? :JRUBY_VERSION
|
21
17
|
gem 'capybara', '~> 1.0'
|
22
18
|
else
|
@@ -26,12 +26,6 @@ class TestAppGenerator < Rails::Generators::Base
|
|
26
26
|
generate 'blacklight', '--devise'
|
27
27
|
end
|
28
28
|
|
29
|
-
def run_cucumber_generator
|
30
|
-
say_status("warning", "GENERATING cucumber", :yellow)
|
31
|
-
|
32
|
-
generate 'cucumber:install'
|
33
|
-
end
|
34
|
-
|
35
29
|
def run_test_support_generator
|
36
30
|
say_status("warning", "GENERATING test_support", :yellow)
|
37
31
|
|
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'rspec/core/rake_task'
|
2
|
-
require 'cucumber/rake/task'
|
3
2
|
|
4
3
|
desc "run the blacklight gem spec"
|
5
4
|
gem_home = File.expand_path('../../../../..', __FILE__)
|
@@ -12,11 +11,4 @@ namespace :blacklight_test_app do
|
|
12
11
|
t.ruby_opts = "-I#{gem_home}/spec"
|
13
12
|
end
|
14
13
|
|
15
|
-
|
16
|
-
t.cucumber_opts = gem_home + "/features/**/*.feature"
|
17
|
-
end
|
18
|
-
|
19
|
-
desc 'Alias for cucumber:ok'
|
20
|
-
task :cucumber => 'cucumber:ok'
|
21
|
-
|
22
|
-
end
|
14
|
+
end
|
@@ -40,9 +40,10 @@ describe "catalog/_facets" do
|
|
40
40
|
|
41
41
|
end
|
42
42
|
|
43
|
-
it "should have a header" do
|
43
|
+
it "should have a(n accessible) header" do
|
44
44
|
render
|
45
45
|
rendered.should have_selector('h5')
|
46
|
+
rendered.should have_selector('h5 > a')
|
46
47
|
end
|
47
48
|
|
48
49
|
it "should list values" do
|
data/tasks/blacklight.rake
CHANGED
@@ -15,7 +15,6 @@ task :ci => 'jetty:clean' do
|
|
15
15
|
error = Jettywrapper.wrap(jetty_params) do
|
16
16
|
Rake::Task["blacklight:fixtures"].invoke
|
17
17
|
Rake::Task['blacklight:coverage'].invoke
|
18
|
-
Rake::Task['blacklight:cucumber'].invoke
|
19
18
|
end
|
20
19
|
raise "test failures: #{error}" if error
|
21
20
|
# Only create documentation if the tests have passed
|
@@ -47,15 +46,6 @@ namespace :blacklight do
|
|
47
46
|
end
|
48
47
|
end
|
49
48
|
|
50
|
-
desc "Run cucumber features"
|
51
|
-
task :cucumber => [:generate] do |t|
|
52
|
-
within_test_app do
|
53
|
-
system "CUCUMBER_OPTS='../../features' rake blacklight_test_app:cucumber"
|
54
|
-
abort "Error running cucumber" unless $?.success?
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
|
-
|
59
49
|
desc "Clean out the test rails app"
|
60
50
|
task :clean do
|
61
51
|
puts "Removing sample rails app"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Rochkind
|
@@ -13,10 +13,11 @@ authors:
|
|
13
13
|
- Mark A. Matienzo
|
14
14
|
- Dan Funk
|
15
15
|
- Naomi Dushay
|
16
|
+
- Justin Coyne
|
16
17
|
autorequire:
|
17
18
|
bindir: bin
|
18
19
|
cert_chain: []
|
19
|
-
date: 2013-
|
20
|
+
date: 2013-09-17 00:00:00.000000000 Z
|
20
21
|
dependencies:
|
21
22
|
- !ruby/object:Gem::Dependency
|
22
23
|
name: rails
|
@@ -191,6 +192,7 @@ files:
|
|
191
192
|
- app/assets/images/blacklight/separator.gif
|
192
193
|
- app/assets/images/blacklight/start_over.gif
|
193
194
|
- app/assets/images/favicon.ico
|
195
|
+
- app/assets/javascripts/blacklight/autofocus.js
|
194
196
|
- app/assets/javascripts/blacklight/blacklight.js
|
195
197
|
- app/assets/javascripts/blacklight/bookmark_toggle.js
|
196
198
|
- app/assets/javascripts/blacklight/checkbox_submit.js
|
@@ -209,6 +211,7 @@ files:
|
|
209
211
|
- app/assets/stylesheets/blacklight/_dropdown.css.scss
|
210
212
|
- app/assets/stylesheets/blacklight/_facets.css.scss
|
211
213
|
- app/assets/stylesheets/blacklight/_footer.css.scss
|
214
|
+
- app/assets/stylesheets/blacklight/_group.css.scss
|
212
215
|
- app/assets/stylesheets/blacklight/_header.css.scss
|
213
216
|
- app/assets/stylesheets/blacklight/_layout.css.scss
|
214
217
|
- app/assets/stylesheets/blacklight/_mixins.css.scss
|
@@ -263,6 +266,7 @@ files:
|
|
263
266
|
- app/views/catalog/_facet_pagination.html.erb
|
264
267
|
- app/views/catalog/_facet_pivot.html.erb
|
265
268
|
- app/views/catalog/_facets.html.erb
|
269
|
+
- app/views/catalog/_group_default.html.erb
|
266
270
|
- app/views/catalog/_home.html.erb
|
267
271
|
- app/views/catalog/_home_text.html.erb
|
268
272
|
- app/views/catalog/_index_default.html.erb
|
@@ -281,9 +285,11 @@ files:
|
|
281
285
|
- app/views/catalog/_sms_form.html.erb
|
282
286
|
- app/views/catalog/_sort_and_per_page.html.erb
|
283
287
|
- app/views/catalog/_sort_widget.html.erb
|
288
|
+
- app/views/catalog/_thumbnail_default.html.erb
|
284
289
|
- app/views/catalog/citation.html.erb
|
285
290
|
- app/views/catalog/citation.js.erb
|
286
291
|
- app/views/catalog/email.html.erb
|
292
|
+
- app/views/catalog/email_sent.html.erb
|
287
293
|
- app/views/catalog/endnote.endnote.erb
|
288
294
|
- app/views/catalog/facet.html.erb
|
289
295
|
- app/views/catalog/index.atom.builder
|
@@ -297,6 +303,7 @@ files:
|
|
297
303
|
- app/views/catalog/show.html.erb
|
298
304
|
- app/views/catalog/show.refworks.erb
|
299
305
|
- app/views/catalog/sms.html.erb
|
306
|
+
- app/views/catalog/sms_sent.html.erb
|
300
307
|
- app/views/feedback/complete.html.erb
|
301
308
|
- app/views/feedback/show.html.erb
|
302
309
|
- app/views/kaminari/blacklight/_first_page.html.erb
|
@@ -321,32 +328,6 @@ files:
|
|
321
328
|
- config/locales/blacklight.en.yml
|
322
329
|
- config/locales/blacklight.fr.yml
|
323
330
|
- config/routes.rb
|
324
|
-
- features/bookmarks.feature
|
325
|
-
- features/did_you_mean.feature
|
326
|
-
- features/librarian_view.feature
|
327
|
-
- features/record_view.feature
|
328
|
-
- features/saved_searches.feature
|
329
|
-
- features/search.feature
|
330
|
-
- features/search_filters.feature
|
331
|
-
- features/search_history.feature
|
332
|
-
- features/search_pagination.feature
|
333
|
-
- features/search_results.feature
|
334
|
-
- features/search_sort.feature
|
335
|
-
- features/step_definitions/bookmarks_steps.rb
|
336
|
-
- features/step_definitions/error_steps.rb
|
337
|
-
- features/step_definitions/general_steps.rb
|
338
|
-
- features/step_definitions/record_view_steps.rb
|
339
|
-
- features/step_definitions/saved_searches_steps.rb
|
340
|
-
- features/step_definitions/search_facets_steps.rb
|
341
|
-
- features/step_definitions/search_history_steps.rb
|
342
|
-
- features/step_definitions/search_pagination_steps.rb
|
343
|
-
- features/step_definitions/search_result_steps.rb
|
344
|
-
- features/step_definitions/search_steps.rb
|
345
|
-
- features/step_definitions/user_steps.rb
|
346
|
-
- features/step_definitions/web_steps.rb
|
347
|
-
- features/support/env.rb
|
348
|
-
- features/support/paths.rb
|
349
|
-
- features/support/selectors.rb
|
350
331
|
- gemfiles/rails3.gemfile
|
351
332
|
- gemfiles/rails4.gemfile
|
352
333
|
- lib/SolrMarc.jar
|
@@ -362,6 +343,7 @@ files:
|
|
362
343
|
- lib/blacklight/controller.rb
|
363
344
|
- lib/blacklight/engine.rb
|
364
345
|
- lib/blacklight/exceptions.rb
|
346
|
+
- lib/blacklight/facet.rb
|
365
347
|
- lib/blacklight/legacy_controller_methods.rb
|
366
348
|
- lib/blacklight/mash.rb
|
367
349
|
- lib/blacklight/routes.rb
|
@@ -380,7 +362,10 @@ files:
|
|
380
362
|
- lib/blacklight/solr_helper.rb
|
381
363
|
- lib/blacklight/solr_response.rb
|
382
364
|
- lib/blacklight/solr_response/facets.rb
|
365
|
+
- lib/blacklight/solr_response/group.rb
|
366
|
+
- lib/blacklight/solr_response/group_response.rb
|
383
367
|
- lib/blacklight/solr_response/more_like_this.rb
|
368
|
+
- lib/blacklight/solr_response/pagination_methods.rb
|
384
369
|
- lib/blacklight/solr_response/spelling.rb
|
385
370
|
- lib/blacklight/user.rb
|
386
371
|
- lib/blacklight/utils.rb
|
@@ -388,6 +373,8 @@ files:
|
|
388
373
|
- lib/generators/blacklight/assets_generator.rb
|
389
374
|
- lib/generators/blacklight/blacklight_generator.rb
|
390
375
|
- lib/generators/blacklight/jetty_generator.rb
|
376
|
+
- lib/generators/blacklight/marc_generator.rb
|
377
|
+
- lib/generators/blacklight/models_generator.rb
|
391
378
|
- lib/generators/blacklight/templates/alternate_controller.rb
|
392
379
|
- lib/generators/blacklight/templates/blacklight.css.scss
|
393
380
|
- lib/generators/blacklight/templates/catalog_controller.rb
|
@@ -413,16 +400,26 @@ files:
|
|
413
400
|
- lib/generators/blacklight/test_support_generator.rb
|
414
401
|
- lib/railties/all_tests.rake
|
415
402
|
- lib/railties/blacklight.rake
|
416
|
-
- lib/railties/blacklight_cucumber.rake
|
417
403
|
- lib/railties/blacklight_rspec.rake
|
418
404
|
- lib/railties/solr_marc.rake
|
419
|
-
- lib/solrmarc.log.1
|
420
405
|
- spec/controllers/application_controller_spec.rb
|
421
406
|
- spec/controllers/bookmarks_controller_spec.rb
|
422
407
|
- spec/controllers/catalog_controller_spec.rb
|
423
408
|
- spec/controllers/search_history_controller_spec.rb
|
424
409
|
- spec/data/sample_docs.yml
|
425
410
|
- spec/data/test_data.utf8.mrc
|
411
|
+
- spec/features/alternate_controller_spec.rb
|
412
|
+
- spec/features/bookmarks_spec.rb
|
413
|
+
- spec/features/did_you_mean_spec.rb
|
414
|
+
- spec/features/librarian_view_spec.rb
|
415
|
+
- spec/features/record_view_spec.rb
|
416
|
+
- spec/features/saved_searches_spec.rb
|
417
|
+
- spec/features/search_filters_spec.rb
|
418
|
+
- spec/features/search_history_spec.rb
|
419
|
+
- spec/features/search_pagination_spec.rb
|
420
|
+
- spec/features/search_results_spec.rb
|
421
|
+
- spec/features/search_sort_spec.rb
|
422
|
+
- spec/features/search_spec.rb
|
426
423
|
- spec/helpers/blacklight_helper_spec.rb
|
427
424
|
- spec/helpers/catalog_helper_spec.rb
|
428
425
|
- spec/helpers/facets_helper_spec.rb
|
@@ -430,6 +427,8 @@ files:
|
|
430
427
|
- spec/helpers/html_head_helper_spec.rb
|
431
428
|
- spec/helpers/render_constraints_helper_spec.rb
|
432
429
|
- spec/helpers/search_history_constraints_helper_spec.rb
|
430
|
+
- spec/lib/blacklight/solr_response/group_response_spec.rb
|
431
|
+
- spec/lib/blacklight/solr_response/group_spec.rb
|
433
432
|
- spec/lib/blacklight_configurable_spec.rb
|
434
433
|
- spec/lib/blacklight_configuration_spec.rb
|
435
434
|
- spec/lib/blacklight_email_spec.rb
|
@@ -451,13 +450,15 @@ files:
|
|
451
450
|
- spec/models/bookmark_spec.rb
|
452
451
|
- spec/models/record_mailer_spec.rb
|
453
452
|
- spec/models/search_spec.rb
|
454
|
-
- spec/models/
|
453
|
+
- spec/models/solr_document_spec.rb
|
455
454
|
- spec/rcov.opts
|
456
455
|
- spec/requests/alternate_controller_spec.rb
|
457
456
|
- spec/routing/catalog_routing_spec.rb
|
458
457
|
- spec/spec.opts
|
459
458
|
- spec/spec_helper.rb
|
460
459
|
- spec/support/assert_difference.rb
|
460
|
+
- spec/support/features.rb
|
461
|
+
- spec/support/features/session_helpers.rb
|
461
462
|
- spec/support/include_text.rb
|
462
463
|
- spec/test_app_templates/Gemfile.extra
|
463
464
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
@@ -496,38 +497,24 @@ specification_version: 4
|
|
496
497
|
summary: Blacklight provides a discovery interface for any Solr (http://lucene.apache.org/solr)
|
497
498
|
index.
|
498
499
|
test_files:
|
499
|
-
- features/bookmarks.feature
|
500
|
-
- features/did_you_mean.feature
|
501
|
-
- features/librarian_view.feature
|
502
|
-
- features/record_view.feature
|
503
|
-
- features/saved_searches.feature
|
504
|
-
- features/search.feature
|
505
|
-
- features/search_filters.feature
|
506
|
-
- features/search_history.feature
|
507
|
-
- features/search_pagination.feature
|
508
|
-
- features/search_results.feature
|
509
|
-
- features/search_sort.feature
|
510
|
-
- features/step_definitions/bookmarks_steps.rb
|
511
|
-
- features/step_definitions/error_steps.rb
|
512
|
-
- features/step_definitions/general_steps.rb
|
513
|
-
- features/step_definitions/record_view_steps.rb
|
514
|
-
- features/step_definitions/saved_searches_steps.rb
|
515
|
-
- features/step_definitions/search_facets_steps.rb
|
516
|
-
- features/step_definitions/search_history_steps.rb
|
517
|
-
- features/step_definitions/search_pagination_steps.rb
|
518
|
-
- features/step_definitions/search_result_steps.rb
|
519
|
-
- features/step_definitions/search_steps.rb
|
520
|
-
- features/step_definitions/user_steps.rb
|
521
|
-
- features/step_definitions/web_steps.rb
|
522
|
-
- features/support/env.rb
|
523
|
-
- features/support/paths.rb
|
524
|
-
- features/support/selectors.rb
|
525
500
|
- spec/controllers/application_controller_spec.rb
|
526
501
|
- spec/controllers/bookmarks_controller_spec.rb
|
527
502
|
- spec/controllers/catalog_controller_spec.rb
|
528
503
|
- spec/controllers/search_history_controller_spec.rb
|
529
504
|
- spec/data/sample_docs.yml
|
530
505
|
- spec/data/test_data.utf8.mrc
|
506
|
+
- spec/features/alternate_controller_spec.rb
|
507
|
+
- spec/features/bookmarks_spec.rb
|
508
|
+
- spec/features/did_you_mean_spec.rb
|
509
|
+
- spec/features/librarian_view_spec.rb
|
510
|
+
- spec/features/record_view_spec.rb
|
511
|
+
- spec/features/saved_searches_spec.rb
|
512
|
+
- spec/features/search_filters_spec.rb
|
513
|
+
- spec/features/search_history_spec.rb
|
514
|
+
- spec/features/search_pagination_spec.rb
|
515
|
+
- spec/features/search_results_spec.rb
|
516
|
+
- spec/features/search_sort_spec.rb
|
517
|
+
- spec/features/search_spec.rb
|
531
518
|
- spec/helpers/blacklight_helper_spec.rb
|
532
519
|
- spec/helpers/catalog_helper_spec.rb
|
533
520
|
- spec/helpers/facets_helper_spec.rb
|
@@ -535,6 +522,8 @@ test_files:
|
|
535
522
|
- spec/helpers/html_head_helper_spec.rb
|
536
523
|
- spec/helpers/render_constraints_helper_spec.rb
|
537
524
|
- spec/helpers/search_history_constraints_helper_spec.rb
|
525
|
+
- spec/lib/blacklight/solr_response/group_response_spec.rb
|
526
|
+
- spec/lib/blacklight/solr_response/group_spec.rb
|
538
527
|
- spec/lib/blacklight_configurable_spec.rb
|
539
528
|
- spec/lib/blacklight_configuration_spec.rb
|
540
529
|
- spec/lib/blacklight_email_spec.rb
|
@@ -556,13 +545,15 @@ test_files:
|
|
556
545
|
- spec/models/bookmark_spec.rb
|
557
546
|
- spec/models/record_mailer_spec.rb
|
558
547
|
- spec/models/search_spec.rb
|
559
|
-
- spec/models/
|
548
|
+
- spec/models/solr_document_spec.rb
|
560
549
|
- spec/rcov.opts
|
561
550
|
- spec/requests/alternate_controller_spec.rb
|
562
551
|
- spec/routing/catalog_routing_spec.rb
|
563
552
|
- spec/spec.opts
|
564
553
|
- spec/spec_helper.rb
|
565
554
|
- spec/support/assert_difference.rb
|
555
|
+
- spec/support/features.rb
|
556
|
+
- spec/support/features/session_helpers.rb
|
566
557
|
- spec/support/include_text.rb
|
567
558
|
- spec/test_app_templates/Gemfile.extra
|
568
559
|
- spec/test_app_templates/lib/generators/test_app_generator.rb
|
data/features/bookmarks.feature
DELETED
@@ -1,68 +0,0 @@
|
|
1
|
-
@bookmarks
|
2
|
-
Feature: Bookmarks
|
3
|
-
In order to collect documents
|
4
|
-
As a user
|
5
|
-
I want to bookmark documents
|
6
|
-
|
7
|
-
Scenario: Bookmarks Menu Link
|
8
|
-
Given I am logged in as "user1"
|
9
|
-
When I am on the home page
|
10
|
-
Then I should see "Bookmarks"
|
11
|
-
When I follow "Bookmarks"
|
12
|
-
Then I should be on the bookmarks page
|
13
|
-
And I should see a stylesheet
|
14
|
-
|
15
|
-
Scenario: No Bookmarks
|
16
|
-
Given I am logged in as "user1"
|
17
|
-
When I go to the bookmarks page
|
18
|
-
Then I should see "You have no bookmarks"
|
19
|
-
|
20
|
-
Scenario: Clearing Bookmarks
|
21
|
-
Given I am on the document page for id 2007020969
|
22
|
-
And I press "Bookmark"
|
23
|
-
When I am on the bookmarks page
|
24
|
-
Then I should see "Clear Bookmarks"
|
25
|
-
When I follow "Clear Bookmarks"
|
26
|
-
Then I should see "Cleared your bookmarks."
|
27
|
-
And I should see "You have no bookmarks"
|
28
|
-
|
29
|
-
Scenario: Adding and removing a bookmark from search results
|
30
|
-
Given I am logged in as "user1"
|
31
|
-
When I am on the home page
|
32
|
-
And I fill in "q" with "book"
|
33
|
-
And I press "search"
|
34
|
-
When I press "Bookmark"
|
35
|
-
Then I should see "Successfully added bookmark."
|
36
|
-
# We should be back on search results here, but due to
|
37
|
-
# what I believe is a bug in Cucumber with query strings
|
38
|
-
# and http Referer, we're not, we're on home page, so we'll
|
39
|
-
# navigate back, sorry.
|
40
|
-
And I fill in "q" with "book"
|
41
|
-
And I press "search"
|
42
|
-
Then I press "Remove bookmark"
|
43
|
-
And I should see "Successfully removed bookmark."
|
44
|
-
|
45
|
-
Scenario: Adding and deleting bookmark from show page
|
46
|
-
Given I am logged in as "user1"
|
47
|
-
When I am on the document page for id 2007020969
|
48
|
-
Then I should see a "Bookmark" button
|
49
|
-
And I press "Bookmark"
|
50
|
-
#Then I should see "Successfully added bookmark"
|
51
|
-
And I should see a "Remove bookmark" button
|
52
|
-
And I press "Remove bookmark"
|
53
|
-
And I should see "Successfully removed bookmark"
|
54
|
-
|
55
|
-
Scenario: Adding bookmarks after a user logs in
|
56
|
-
Given I am on the document page for id 2007020969
|
57
|
-
Then I should see a "Bookmark" button
|
58
|
-
And I press "Bookmark"
|
59
|
-
And I am logged in as "user1"
|
60
|
-
When I go to the bookmarks page
|
61
|
-
Then I should see a "Remove bookmark" button
|
62
|
-
|
63
|
-
Scenario: Citing items in bookmarks
|
64
|
-
Given I am on the document page for id 2007020969
|
65
|
-
And I press "Bookmark"
|
66
|
-
When I go to the bookmarks page
|
67
|
-
And I follow "Cite"
|
68
|
-
Then I should see "Strong Medicine speaks"
|