aboutsummaryrefslogtreecommitdiffstats
path: root/spec/calendar_spec.rb
blob: a543dbe9414c4a912166065a085e37bed96b0d3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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