Sha256: d6138e986609c22f0269a98e8cf33ff9c977ce11816cd16c49b7c7281a1f5ee7
Contents?: true
Size: 381 Bytes
Versions: 1
Compression:
Stored size: 381 Bytes
Contents
require 'administrate/field/telephone' describe Administrate::Field::Telephone do describe '#to_partial_path' do it 'returns a partial based on the page being rendered' do page = :show field = Administrate::Field::Telephone.new(:status, 'status', page) path = field.to_partial_path expect(path).to eq('/fields/telephone/#{page}') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
administrate-field-telephone-0.0.1 | spec/lib/administrate/field/telephone_spec.rb |