blacklight-spotlight 3.0.0.alpha.5 → 3.0.0.alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/spotlight/_exhibits_index.scss +84 -4
- data/app/views/shared/_masthead.html.erb +12 -2
- data/app/views/shared/_site_navbar.html.erb +0 -0
- data/app/views/spotlight/exhibits/_exhibit_card.html.erb +15 -15
- data/app/views/spotlight/exhibits/index.html.erb +3 -3
- data/lib/spotlight/version.rb +1 -1
- data/spec/examples.txt +1387 -1389
- data/spec/features/javascript/blocks/solr_documents_block_spec.rb +2 -2
- data/spec/views/shared/_masthead.html.erb_spec.rb +12 -0
- metadata +3 -2
@@ -188,11 +188,11 @@ describe 'Solr Document Block', feature: true, versioning: true, default_max_wai
|
|
188
188
|
save_page
|
189
189
|
|
190
190
|
# verify that the item + image widget is displaying image and title from the requested document.
|
191
|
-
within(:css, '.items-block
|
191
|
+
within(:css, '.items-block') do
|
192
192
|
within('.text-col') do
|
193
193
|
expect(page).to have_content 'zzz'
|
194
194
|
end
|
195
|
-
expect(page).to have_css('.items-col')
|
195
|
+
expect(page).to have_css('.items-col.float-right')
|
196
196
|
end
|
197
197
|
end
|
198
198
|
|
@@ -76,4 +76,16 @@ describe 'shared/_masthead', type: :view do
|
|
76
76
|
expect(rendered.index('navbar')).to be < rendered.index(exhibit.title)
|
77
77
|
end
|
78
78
|
end
|
79
|
+
|
80
|
+
context 'with a site masthead' do
|
81
|
+
before do
|
82
|
+
allow(view).to receive_messages(current_exhibit: nil)
|
83
|
+
stub_template 'shared/_site_navbar.html.erb' => 'site navbar'
|
84
|
+
end
|
85
|
+
|
86
|
+
it 'adds a class to the masthead' do
|
87
|
+
render
|
88
|
+
expect(rendered).to have_text 'site navbar'
|
89
|
+
end
|
90
|
+
end
|
79
91
|
end
|
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: 3.0.0.alpha.
|
4
|
+
version: 3.0.0.alpha.6
|
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: 2020-02-
|
14
|
+
date: 2020-02-26 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: acts-as-taggable-on
|
@@ -1049,6 +1049,7 @@ files:
|
|
1049
1049
|
- app/views/shared/_footer.html.erb
|
1050
1050
|
- app/views/shared/_header_navbar.html.erb
|
1051
1051
|
- app/views/shared/_masthead.html.erb
|
1052
|
+
- app/views/shared/_site_navbar.html.erb
|
1052
1053
|
- app/views/shared/_site_sidebar.html.erb
|
1053
1054
|
- app/views/shared/_user_util_links.html.erb
|
1054
1055
|
- app/views/spotlight/about_pages/_contact.html.erb
|