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
ack_rails_admin_settings-1.2.3.3 spec/label_spec.rb
ack_rails_admin_settings-1.2.3.2 spec/label_spec.rb
ack_rails_admin_settings-1.2.3.1 spec/label_spec.rb
ack_rails_admin_settings-1.2.3 spec/label_spec.rb
rails_admin_settings-1.3.2 spec/label_spec.rb
rails_admin_settings-1.3.1 spec/label_spec.rb
rails_admin_settings-1.3.0 spec/label_spec.rb
rails_admin_settings-1.2.1 spec/label_spec.rb
rails_admin_settings-1.2.0 spec/label_spec.rb
ack_rails_admin_settings-1.2.2.1 spec/label_spec.rb
ack_rails_admin_settings-1.2.2 spec/label_spec.rb
ack_rails_admin_settings-1.2.1.3 spec/label_spec.rb
ack_rails_admin_settings-1.2.1.2 spec/label_spec.rb
ack_rails_admin_settings-1.2.1.1 spec/label_spec.rb
ack_rails_admin_settings-1.2.1 spec/label_spec.rb
ack_rails_admin_settings-1.2.0.2 spec/label_spec.rb
rails_admin_settings-1.1.4 spec/label_spec.rb
ack_rails_admin_settings-1.2.0.1 spec/label_spec.rb
ack_rails_admin_settings-1.1.5 spec/label_spec.rb
ack_rails_admin_settings-1.1.4 spec/label_spec.rb