spec/zen/helper/locale.rb in zen-0.3 vs spec/zen/helper/locale.rb in zen-0.4
- old
+ new
@@ -1,23 +1,23 @@
require File.expand_path('../../../helper', __FILE__)
require File.join(Zen::FIXTURES, 'helper', 'locale')
-describe('Ramaze::Helper::Locale') do
+describe 'Ramaze::Helper::Locale' do
behaves_like :capybara
extend Ramaze::Helper::Locale
- it('Get the date format from the database') do
+ 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
+ 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