Sha256: 374d7bf9ad938dc396ce94c821c58d70d9b8741693e53661726c5552c2b6dc78

Contents?: true

Size: 385 Bytes

Versions: 17

Compression:

Stored size: 385 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")
    Settings.get(:email).name.should == label
  end

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

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rails_admin_settings-0.7.8 spec/label_spec.rb
rails_admin_settings-0.7.7 spec/label_spec.rb
rails_admin_settings-0.7.6 spec/label_spec.rb
rails_admin_settings-0.7.5 spec/label_spec.rb
rails_admin_settings-0.7.4 spec/label_spec.rb
rails_admin_settings-0.7.3 spec/label_spec.rb
rails_admin_settings-0.7.2 spec/label_spec.rb
rails_admin_settings-0.7.1 spec/label_spec.rb
rails_admin_settings-0.7.0 spec/label_spec.rb
rails_admin_settings-0.6.8 spec/label_spec.rb
rails_admin_settings-0.6.7 spec/label_spec.rb
rails_admin_settings-0.6.5 spec/label_spec.rb
rails_admin_settings-0.6.4 spec/label_spec.rb
rails_admin_settings-0.6.3 spec/label_spec.rb
rails_admin_settings-0.6.2 spec/label_spec.rb
rails_admin_settings-0.6.1 spec/label_spec.rb
rails_admin_settings-0.6.0 spec/label_spec.rb