Sha256: 900444a67e66610a121117334b6b8fb90bfae5e1ea63343d368cd90dbc540ca1

Contents?: true

Size: 379 Bytes

Versions: 5

Compression:

Stored size: 379 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.label(:email).should == label
  end

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

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_admin_settings-0.5.5 spec/label_spec.rb
rails_admin_settings-0.5.4 spec/label_spec.rb
rails_admin_settings-0.5.3 spec/label_spec.rb
rails_admin_settings-0.5.2 spec/label_spec.rb
rails_admin_settings-0.5.0 spec/label_spec.rb