Sha256: 3a52829f780c6047bf25997b715f3867e9c033e338facaba053f8b6d3d264f5a
Contents?: true
Size: 665 Bytes
Versions: 4
Compression:
Stored size: 665 Bytes
Contents
require File.expand_path('../../../helper', __FILE__) require File.join(Zen::FIXTURES, 'helper', 'locale') describe 'Ramaze::Helper::Locale' do behaves_like :capybara extend Ramaze::Helper::Locale it 'Get the date format from the database' do visit('/admin/spec-locale-helper') format = get_setting(:date_format).value date_format.should == format # Get the date format from the session page.body.include?(format).should == true end it 'Format a date using using the date_format setting' do format = get_setting(:date_format).value date = Time.new format_date(date).should == date.strftime(format) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
zen-0.4.3 | spec/zen/helper/locale.rb |
zen-0.4.2 | spec/zen/helper/locale.rb |
zen-0.4.1 | spec/zen/helper/locale.rb |
zen-0.4 | spec/zen/helper/locale.rb |