spec/helpers/spotlight/pages_helper_spec.rb in blacklight-spotlight-0.14.0 vs spec/helpers/spotlight/pages_helper_spec.rb in blacklight-spotlight-0.14.1
- old
+ new
@@ -80,15 +80,15 @@
expect(helper.nestable_data_attributes('something_else')).to eq ''
end
end
describe 'nestable data attributes hash' do
it 'returns the appropriate hash for feature pages' do
- expect(helper.nestable_data_attributes_hash('feature_pages')).to eq "data-max-depth": '2',
- "data-expand-btn-HTML": '',
- "data-collapse-btn-HTML": ''
+ expect(helper.nestable_data_attributes_hash('feature_pages')).to eq('data-max-depth' => '2',
+ 'data-expand-btn-HTML' => '',
+ 'data-collapse-btn-HTML' => '')
end
it 'returns the appropriate hash for about pages' do
- expect(helper.nestable_data_attributes_hash('about_pages')).to eq "data-max-depth": '1'
+ expect(helper.nestable_data_attributes_hash('about_pages')).to eq 'data-max-depth' => '1'
end
it 'returns an empty hash if the type is not valid' do
expect(helper.nestable_data_attributes_hash('something_else')).to eq({})
end
end