Sha256: 2f3f95cefb9322322d155665c07f5348bdebb20252e76ad7b6bf6e45b4398194

Contents?: true

Size: 395 Bytes

Versions: 35

Compression:

Stored size: 395 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe 'Settings label' do
  
  it "should have label" do
    label = "E-Mail"
    Settings.email(label: label, default: "my@mail.ru")
    expect(Settings.get(:email).name).to eq(label)
  end

  it "should properly set label as key if blank" do
    Settings.email(default: "my@mail.ru")
    expect(Settings.get(:email).name).to eq('email')
  end

end

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
rails_admin_settings-1.1.3 spec/label_spec.rb
rails_admin_settings-1.1.2 spec/label_spec.rb
rails_admin_settings-1.1.0.pre.1 spec/label_spec.rb
rails_admin_settings-1.0.1 spec/label_spec.rb
rails_admin_settings-1.0.0 spec/label_spec.rb
rails_admin_settings-1.0.0.pre.1 spec/label_spec.rb
rails_admin_settings-0.9.1 spec/label_spec.rb
rails_admin_settings-0.9.0 spec/label_spec.rb
rails_admin_settings-0.9.0.pre.6 spec/label_spec.rb
rails_admin_settings-0.9.0.pre.5 spec/label_spec.rb
rails_admin_settings-0.9.0.pre.4 spec/label_spec.rb
rails_admin_settings-0.9.0.pre.3 spec/label_spec.rb
rails_admin_settings-0.9.0.pre.2 spec/label_spec.rb
rails_admin_settings-0.9.0.pre spec/label_spec.rb
rails_admin_settings-0.8.0 spec/label_spec.rb