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

Version Path
keppler-2.1.11 installer/core/spec/models/customize_spec.rb
keppler-2.1.10 installer/core/spec/models/customize_spec.rb
keppler-2.1.9 installer/core/spec/models/customize_spec.rb
keppler-2.1.8 installer/core/spec/models/customize_spec.rb
keppler-2.1.7 installer/core/spec/models/customize_spec.rb
keppler-2.1.6 installer/core/spec/models/customize_spec.rb
keppler-2.1.5 installer/core/spec/models/customize_spec.rb
keppler-2.1.4 installer/core/spec/models/customize_spec.rb
keppler-2.1.3 installer/core/spec/models/customize_spec.rb
keppler-2.1.2 installer/core/spec/models/customize_spec.rb
keppler-2.1.1 installer/core/spec/models/customize_spec.rb
keppler-2.1.pre.p1 installer/core/spec/models/customize_spec.rb
keppler-2.1 installer/core/spec/models/customize_spec.rb
keppler-2.0.7 installer/core/spec/models/customize_spec.rb
keppler-2.0.6 installer/core/spec/models/customize_spec.rb
keppler-2.0.5 installer/core/spec/models/customize_spec.rb
keppler-2.0.4.p1 installer/core/spec/models/customize_spec.rb
keppler-2.0.4.pre.p1 installer/core/spec/models/customize_spec.rb
keppler-2.0.4 installer/core/spec/models/customize_spec.rb