aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorCarlos Goce <carlosgoce@gmail.com>2015-01-22 22:40:08 +0100
committerCarlos Goce <carlosgoce@gmail.com>2015-01-22 22:40:08 +0100
commite8341ef9884861fc24040d4f219a271ae1022722 (patch)
tree191cc7162a6ca5596ceef95977a3f0aa025e3b37 /spec
parentfa4e80e193d541d3b7744971ac92f4835d8a9188 (diff)
downloadpdf-calendars-e8341ef9884861fc24040d4f219a271ae1022722.tar.gz
pdf-calendars-e8341ef9884861fc24040d4f219a271ae1022722.tar.bz2
pdf-calendars-e8341ef9884861fc24040d4f219a271ae1022722.zip
Add class calendar, rspec, locales for calendar and updated Gemfile
Diffstat (limited to 'spec')
-rw-r--r--spec/calendar_spec.rb14
1 files changed, 14 insertions, 0 deletions
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