Sha256: 0435b21f67f3461f340712ecbc69b8cda250933ac1d92070e90f9c30fe17b66d
Contents?: true
Size: 647 Bytes
Versions: 4
Compression:
Stored size: 647 Bytes
Contents
require 'spec_helper' describe Spotlight::Contact, :type => :model do context "#show_in_sidebar" do it "should be an attribute" do subject.show_in_sidebar = false subject.save expect(subject.show_in_sidebar).to be_falsey end it "should be 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) Spotlight::Contact.fields[:new_field] = {} expect(subject.class.fields).to have_key(:new_field) end end end
Version data entries
4 entries across 4 versions & 1 rubygems