Sha256: 427f52f699779c8f0e84848aa0d764337728ba8eb3614547b1043c421de15cbe
Contents?: true
Size: 396 Bytes
Versions: 4
Compression:
Stored size: 396 Bytes
Contents
require 'administrate/field/date_picker' describe Administrate::Field::DatePicker do describe '#to_partial_path' do it 'returns a partial based on the page being rendered' do page = :show field = Administrate::Field::DatePicker.new(:date_picker, '11/02/2016', page) path = field.to_partial_path expect(path).to eq("/fields/date_picker/#{page}") end end end
Version data entries
4 entries across 4 versions & 1 rubygems