From e8341ef9884861fc24040d4f219a271ae1022722 Mon Sep 17 00:00:00 2001 From: Carlos Goce Date: Thu, 22 Jan 2015 22:40:08 +0100 Subject: Add class calendar, rspec, locales for calendar and updated Gemfile --- spec/calendar_spec.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 spec/calendar_spec.rb (limited to 'spec') diff --git a/spec/calendar_spec.rb b/spec/calendar_spec.rb new file mode 100644 index 0000000..a543dbe --- /dev/null +++ b/spec/calendar_spec.rb @@ -0,0 +1,14 @@ +require 'rspec' +require_relative '../lib/carlosgoce/calendar' + +describe 'Calendar' do + before(:each) do + @calendar = CarlosGoce::Calendar.new + end + + describe 'Return months and days of given year' do + it 'localize month names' do + expect(@calendar.to_h.keys.first.to_s).to eq('enero') + end + end +end \ No newline at end of file -- cgit v1.2.3