Sha256: 098d6a17cc09b89cfa30a26fe7f77f9c9d8bad01a31be8e375d050c33f60f6e4
Contents?: true
Size: 624 Bytes
Versions: 5
Compression:
Stored size: 624 Bytes
Contents
require 'spec_helper' describe Spotlight::Contact, type: :model do context '#show_in_sidebar' do it 'is an attribute' do subject.show_in_sidebar = false subject.save expect(subject.show_in_sidebar).to be_falsey end it 'is published by default' do subject.save expect(subject.show_in_sidebar).to be_truthy end end context '#fields' do it 'show allow new fields to be configured' do expect(subject.class.fields).to_not have_key(:new_field) described_class.fields[:new_field] = {} expect(subject.class.fields).to have_key(:new_field) end end end
Version data entries
5 entries across 5 versions & 1 rubygems