aboutsummaryrefslogtreecommitdiffstats
path: root/spec/calendar_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/calendar_spec.rb')
-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