Sha256: 92ae2b5aea09d13aceebf694b5e8d9e1b0f551675f7164846424c7ea62b3b394
Contents?: true
Size: 668 Bytes
Versions: 3
Compression:
Stored size: 668 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zen-0.3 | spec/zen/helper/locale.rb |
zen-0.3b1 | spec/zen/helper/locale.rb |
zen-0.3b | spec/zen/helper/locale.rb |