Sha256: a7178604e33bc488cdee9136d1989a63ed036ee0e9b26283b058b5438a173583

Contents?: true

Size: 259 Bytes

Versions: 21

Compression:

Stored size: 259 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

21 entries across 21 versions & 1 rubygems

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