Sha256: 8fbc0b3966fd08693f5251a55b366f771d19f40da55c25403c2e16d6a735d566
Contents?: true
Size: 551 Bytes
Versions: 19
Compression:
Stored size: 551 Bytes
Contents
require 'rails_helper' require 'byebug' RSpec.describe Customize, type: :model do context 'database' do context 'columns' do it { should have_db_column(:file).of_type(:string) } it { should have_db_column(:installed).of_type(:boolean) } end end context 'class fuctions' do it { expect(Customize.search_field).to eq(:file_cont) } end context 'instance fuctions' do it 'set "Keppler Default" if file is nil' do theme = create(:customize) expect(theme.name).to eq('Keppler Default') end end end
Version data entries
19 entries across 19 versions & 1 rubygems