From d1d3d417b77d73b87273bec06b28604de494c07d Mon Sep 17 00:00:00 2001 From: Carlos Goce Date: Fri, 23 Jan 2015 20:29:00 +0100 Subject: Add year --- spec/calendar_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec') diff --git a/spec/calendar_spec.rb b/spec/calendar_spec.rb index f13cf93..3680b3b 100644 --- a/spec/calendar_spec.rb +++ b/spec/calendar_spec.rb @@ -41,16 +41,16 @@ describe 'Calendar' do I18n.locale = 'es' expect(@calendar.to_h[1][:days_names].first).to eq 'jueves' end - end describe 'Can generate a pdfs' do it 'should receive a layout and pass it the data to create the specified file' do layout = instance_double('CarlosGoce::Layout') file = 'destionation.pdf' - expect(layout).to receive(:create).with(file, @calendar.to_h) + year = 2015 + expect(layout).to receive(:create).with(file, @calendar.to_h, year) - @calendar.generate(layout, file) + @calendar.generate(layout, file, year) end end end \ No newline at end of file -- cgit v1.2.3