Skip to content

Commit

Permalink
failing tests for flat ODS
Browse files Browse the repository at this point in the history
  • Loading branch information
gorn authored and gorn committed Jun 3, 2019
1 parent a9f012a commit 8ea3a2b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/helpers/class_extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,4 @@ def elements
# end
end

end
end
1 change: 1 addition & 0 deletions lib/rspreadsheet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

module Rspreadsheet
extend Configuration

define_setting :raise_on_negative_coordinates, true

# makes creating new workbooks as easy as `Rspreadsheet.new` or `Rspreadsheet.open('filename.ods')
Expand Down
1 change: 1 addition & 0 deletions lib/rspreadsheet/workbook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def create_worksheet(name = "Sheet#{worksheets_count+1}")
alias :add_worksheet :create_worksheet
# @return [Integer] number of sheets in the workbook
def worksheets_count; @worksheets.length end
alias :worksheet_count :worksheets_count
# @return [String] names of sheets in the workbook
def worksheet_names; @worksheets.collect{ |ws| ws.name } end
# @param [Integer,String]
Expand Down
2 changes: 2 additions & 0 deletions spec/rspreadsheet_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@
end
it 'can create new worksheet' do
book = Rspreadsheet.new
book.worksheet_count.should == 0
book.create_worksheet
book.worksheet_count.should == 1
end
it 'examples from README file are working' do
Rspreadsheet.open($test_filename).save(@tmp_filename)
Expand Down
4 changes: 1 addition & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@

# some variables used everywhere
$test_filename = './spec/testfile1.ods'
$test_filename_fods = './spec/testfile1.fods'
$test_filename_images = './spec/testfile2-images.ods'

# require my gem
require 'rspreadsheet'



0 comments on commit 8ea3a2b

Please sign in to comment.