Sha256: 9c7d4c589ff43bf4ef511648af2f7a0db67e0f339e5aaeac9eead941de79a8c0

Contents?: true

Size: 347 Bytes

Versions: 2

Compression:

Stored size: 347 Bytes

Contents

require 'spec_helper'

describe RailsAdmin::Config::HasDescription do
  it 'shows description message when added through the DSL' do
    RailsAdmin.config do |config|
      config.model Team do
        desc 'Description of Team model'
      end
    end

    expect(RailsAdmin.config(Team).description).to eq('Description of Team model')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_admin-0.6.4 spec/rails_admin/config/has_description_spec.rb
rails_admin-0.6.3 spec/rails_admin/config/has_description_spec.rb