Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a little more test coverage for the affected methods

  • Loading branch information...
commit 942b8dfc81662ff8f25d41b0a4ed743a8cc52a4d 1 parent e8a82f5
@erebor authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 test/test_google_spreadsheet.rb
View
9 test/test_google_spreadsheet.rb
@@ -119,8 +119,15 @@ def test_all()
assert_equal("6", ws.list[1]["x"])
assert_equal("7", ws.list[1]["y"])
- # Making sure we can access cells by name as well as by (row, col) pairs
+ # Make sure we can access cells by name as well as by (row, col) pairs
assert_equal(ws[2, 1], ws['A2'])
+ assert_equal(ws.input_value(2, 1), ws.input_value('A2'))
+
+ # Make sure we can write to a cell by name
+ ws[2, 1] = "5" # set one value
+ ws['A2'] = '555' # set it to another by cell name
+ # Make sure the new value 'took'
+ assert_equal '555', ws[2, 1]
ss.delete()
assert_nil(session.spreadsheets("title" => ss_title).
Please sign in to comment.
Something went wrong with that request. Please try again.