DRY up bootstrapSwitches with default values

This commit is contained in:
James Mason 2018-06-18 17:44:06 -07:00
parent d703dad496
commit 1e9765c163
12 changed files with 33 additions and 66 deletions

View file

@ -71,9 +71,8 @@ describe EventsHelper, type: :helper do
)
end
it 'should patch to the admin event url' do
it 'should use the admin event url' do
expect(result).to include(
'method="patch"',
"url=\"/admin/conferences/#{conference.short_title}/program" \
"/events/#{event.id}?event%5Bis_highlight%5D=\""
)