blacklight-spotlight 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -53,7 +53,6 @@ feature 'Feature Pages Adminstration', js: true do
53
53
  end
54
54
 
55
55
  it 'stays in curation mode if a user has unsaved data' do
56
- pending('Spec does not work with chromedriver')
57
56
  visit spotlight.edit_exhibit_feature_page_path(page1.exhibit, page1)
58
57
 
59
58
  # Hack to bypass alert about unsaved changes
@@ -68,7 +67,6 @@ feature 'Feature Pages Adminstration', js: true do
68
67
  end
69
68
 
70
69
  it 'stays in curation mode if a user has unsaved contenteditable data' do
71
- pending('Spec does not work with chromedriver')
72
70
  visit spotlight.edit_exhibit_feature_page_path(page1.exhibit, page1)
73
71
 
74
72
  # Hack to bypass alert about unsaved changes
@@ -99,11 +99,13 @@ describe Spotlight::BlacklightConfiguration, type: :model do
99
99
  block.call(field)
100
100
  end
101
101
  allow(subject.exhibit).to receive(:custom_fields).and_return(custom_fields)
102
+ subject.facet_fields = { 'a' => { enabled: '1', label: 'Label' } }
102
103
  expect(subject.blacklight_config.facet_fields).to include('a')
103
104
  expect(subject.blacklight_config.facet_fields['a'].show).to be_falsey
104
105
  expect(subject.blacklight_config.facet_fields['a'].if).to eq :field_enabled?
105
106
  expect(subject.blacklight_config.facet_fields['a'].enabled).to eq false
106
107
  expect(subject.blacklight_config.facet_fields['a'].limit).to eq true
108
+ expect(subject.blacklight_config.facet_fields['a'].original).to be_blank
107
109
  end
108
110
  end
109
111
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight-spotlight
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-02-10 00:00:00.000000000 Z
14
+ date: 2018-03-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails
@@ -461,6 +461,20 @@ dependencies:
461
461
  - - "~>"
462
462
  - !ruby/object:Gem::Version
463
463
  version: '1.0'
464
+ - !ruby/object:Gem::Dependency
465
+ name: iiif-presentation
466
+ requirement: !ruby/object:Gem::Requirement
467
+ requirements:
468
+ - - ">="
469
+ - !ruby/object:Gem::Version
470
+ version: '0'
471
+ type: :runtime
472
+ prerelease: false
473
+ version_requirements: !ruby/object:Gem::Requirement
474
+ requirements:
475
+ - - ">="
476
+ - !ruby/object:Gem::Version
477
+ version: '0'
464
478
  - !ruby/object:Gem::Dependency
465
479
  name: iiif_manifest
466
480
  requirement: !ruby/object:Gem::Requirement