Browse files

Fixed spec, use correct path helper for data files.

  • Loading branch information...
1 parent 34bb3b1 commit bacd84576f598453c036b428afddd2a8af7b5957 @sdeming sdeming committed May 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/writing_spec.rb
View
2 spec/writing_spec.rb
@@ -11,7 +11,7 @@
end
it "should create a new workbook and write something to it" do
- name = "spec/data/timesheet-#{Time.now.strftime('%Y%m%d%H%M%S%s')}.xlsx"
+ name = TestDataFile.expand_path("timesheet-#{Time.now.strftime('%Y%m%d%H%M%S%s')}.xlsx")
create_timesheet_spreadsheet(name)
book = POI::Workbook.open(name)
book.worksheets.size.should == 1

0 comments on commit bacd845

Please sign in to comment.