Permalink
Browse files

Add tests for #set with invalid argument

  • Loading branch information...
1 parent ac77954 commit c02cb213fe84805671050f6cf2083dc7abafe116 @pabloh committed May 5, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 test/test_roo.rb
View
@@ -482,6 +482,14 @@ def test_bug_italo_ve
end
end
+ def test_setting_invalid_type_does_not_update_cell
+ with_each_spreadsheet(:name=>'numbers1') do |oo|
+ assert_raise(ArgumentError) { oo.set(1,1, :invalid_type) }
+ assert_equal 1, oo.cell(1,1)
+ assert_equal :float, oo.celltype(1,1)
+ end
+ end
+
def test_italo_table
with_each_spreadsheet(:name=>'simple_spreadsheet_from_italo', :format=>[:openoffice, :excel]) do |oo|
assert_equal '1', oo.cell('A',1)

0 comments on commit c02cb21

Please sign in to comment.