Sha256: 5c96fa23df9c646ad2f3e9661a0d6466c20ed30c04529ec263e00559dd2aefa8
Contents?: true
Size: 582 Bytes
Versions: 7
Compression:
Stored size: 582 Bytes
Contents
require 'spec_helper_models' describe Gaku::Template do describe 'validations' do it { should validate_presence_of :name } it { should validate_presence_of :context } it { should validate_presence_of :file } it { should have_attached_file :file } it do should validate_attachment_content_type(:file) .allowing('text/plain', 'application/vnd.ms-excel', 'application/vnd.oasis.opendocument.spreadsheet', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') end end end
Version data entries
7 entries across 7 versions & 1 rubygems