spec/features/site_masthead_spec.rb in blacklight-spotlight-3.0.0.alpha.2 vs spec/features/site_masthead_spec.rb in blacklight-spotlight-3.0.0.alpha.3
- old
+ new
@@ -54,11 +54,11 @@
end
it 'displays a masthead image when one is uploaded and configured' do
visit spotlight.edit_site_path
- expect(page).to_not have_css('.image-masthead')
+ expect(page).not_to have_css('.image-masthead')
click_link 'Site masthead'
within '#site-masthead' do
check 'Show background image in masthead'
@@ -74,18 +74,18 @@
end
it 'does not display an uploaded masthead if configured to not display' do
visit spotlight.edit_site_path
- expect(page).to_not have_css('.image-masthead')
+ expect(page).not_to have_css('.image-masthead')
click_link 'Site masthead'
within '#site-masthead' do
attach_file('site_masthead_attributes_file', File.absolute_path(File.join(FIXTURES_PATH, 'avatar.png')))
end
click_button 'Save changes'
expect(page).to have_content('The site was successfully updated.')
- expect(page).to_not have_css('.image-masthead .background-container')
+ expect(page).not_to have_css('.image-masthead .background-container')
end
end