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.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/calendar_spec.rb b/spec/calendar_spec.rb
index 765c4d9..f13cf93 100644
--- a/spec/calendar_spec.rb
+++ b/spec/calendar_spec.rb
@@ -48,7 +48,7 @@ describe 'Calendar' 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)
+ expect(layout).to receive(:create).with(file, @calendar.to_h)
@calendar.generate(layout, file)
end