From f31f9b3c634e357757086c9737be8d6780bf1921 Mon Sep 17 00:00:00 2001 From: Carlos Goce Date: Fri, 23 Jan 2015 18:59:53 +0100 Subject: Day names are localized --- spec/calendar_spec.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'spec') diff --git a/spec/calendar_spec.rb b/spec/calendar_spec.rb index fc78cc0..770634a 100644 --- a/spec/calendar_spec.rb +++ b/spec/calendar_spec.rb @@ -7,6 +7,7 @@ I18n.backend.load_translations describe 'Calendar' do before(:each) do + I18n.locale = 'en' @calendar = CarlosGoce::Calendar.new 2015 end @@ -35,9 +36,7 @@ describe 'Calendar' do expect(@calendar.to_h[1][:days_names].count).to eq 31 end - it 'return the day names localized', - :pending => "Not working!!! Months are localized, why days aren't?" do - skip 'Is not working, the names are localized so why days are not?' + it 'return the day names localized' do I18n.locale = 'es' expect(@calendar.to_h[1][:days_names].first).to eq 'jueves' end -- cgit v1.2.3