Sha256: de5552f10806dde5fe227afe0c4e923b6a165c61ec13c0927b4a2d16733f5caf

Contents?: true

Size: 269 Bytes

Versions: 5

Compression:

Stored size: 269 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe 'Settings advanced usage' do
  it 'with defaults' do
    s = Settings.email(default: 'test@example.com')
    s.should eq 'test@example.com'
    Settings.get(:email).to_s.should eq 'test@example.com'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_admin_settings-0.5.0 spec/advanced_usage_spec.rb
rails_admin_settings-0.4.3 spec/advanced_usage_spec.rb
rails_admin_settings-0.4.2 spec/advanced_usage_spec.rb
rails_admin_settings-0.4.1 spec/advanced_usage_spec.rb
rails_admin_settings-0.4.0 spec/advanced_usage_spec.rb