blacklight-spotlight 2.0.0.rc5 → 2.0.0.rc6

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.
@@ -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.rc5
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-03 00:00:00.000000000 Z
14
+ date: 2018-05-04 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rails