blacklight-spotlight 2.0.0.rc5 → 2.0.0.rc6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/spotlight/about_pages_controller.rb +1 -1
- data/app/controllers/spotlight/feature_pages_controller.rb +2 -2
- data/app/controllers/spotlight/pages_controller.rb +3 -3
- data/app/views/spotlight/about_pages/_sidebar.html.erb +2 -2
- data/app/views/spotlight/sir_trevor/blocks/_featured_pages_block.html.erb +1 -1
- data/lib/spotlight/version.rb +1 -1
- data/spec/controllers/spotlight/about_pages_controller_spec.rb +2 -2
- data/spec/controllers/spotlight/feature_pages_controller_spec.rb +8 -4
- data/spec/examples.txt +1227 -1289
- data/spec/views/spotlight/about_pages/_sidebar.html.erb_spec.rb +3 -0
- metadata +2 -2
@@ -8,6 +8,7 @@ describe 'spotlight/about_pages/_sidebar.html.erb', type: :view do
|
|
8
8
|
before do
|
9
9
|
allow(view).to receive_messages(current_exhibit: exhibit)
|
10
10
|
allow(view).to receive_messages(exhibit_about_page_path: '/about/9')
|
11
|
+
assign(:exhibit, page1.exhibit)
|
11
12
|
end
|
12
13
|
|
13
14
|
it 'renders a list of pages' do
|
@@ -15,6 +16,8 @@ describe 'spotlight/about_pages/_sidebar.html.erb', type: :view do
|
|
15
16
|
# Checking that they are sorted accoding to weight
|
16
17
|
expect(rendered).to have_selector '#sidebar ul.sidenav li:nth-child(1) a', text: 'Three'
|
17
18
|
expect(rendered).to have_selector '#sidebar ul.sidenav li:nth-child(2) a', text: 'One'
|
19
|
+
expect(rendered).to have_link 'Three', href: "/spotlight/#{exhibit.slug}/about/three"
|
20
|
+
expect(rendered).to have_link 'One', href: "/spotlight/#{exhibit.slug}/about/one"
|
18
21
|
expect(rendered).not_to have_link 'Two'
|
19
22
|
end
|
20
23
|
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: 2.0.0.
|
4
|
+
version: 2.0.0.rc6
|
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-05-
|
14
|
+
date: 2018-05-04 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|