Skip to content

Commit

Permalink
Merge 9de7a82 into 4053242
Browse files Browse the repository at this point in the history
  • Loading branch information
chopraanmol1 committed Oct 8, 2018
2 parents 4053242 + 9de7a82 commit be42072
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
13 changes: 13 additions & 0 deletions test/files/simple_spreadsheet.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
,,,,,
,,,,,
Date,Start time,End time,Pause,Sum,Comment
2007-05-07,9.25,10.25,0,1,Task 1
2007-05-07,10.75,12.50,0,1.75,Task 1
2007-05-07,18.00,19.00,0,1,Task 2
2007-05-08,9.25,10.25,0,1,Task 2
2007-05-08,14.50,15.50,0,1,Task 3
2007-05-08,8.75,9.25,0,0.5,Task 3
2007-05-14,21.75,22.25,0,0.5,Task 3
2007-05-14,22.50,23.00,0,0.5,Task 3
2007-05-15,11.75,12.75,0,1,Task 3
2007-05-07,10.75,10.75,0,0,Task 1
8 changes: 4 additions & 4 deletions test/roo/test_csv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ def test_sheets
end

def test_download_uri_with_query_string
file = filename("Bibelbund")
file = filename("simple_spreadsheet")
port = 12_344
url = "#{local_server(port)}/#{file}?query-param=value"

start_local_server(file, port) do
csv = roo_class.new(url)
assert_equal "Aktuelle Seite", csv.cell("h", 12)
assert_equal "Task 1", csv.cell("f", 4)
assert_equal 1, csv.first_row
assert_equal 3735, csv.last_row
assert_equal 13, csv.last_row
assert_equal 1, csv.first_column
assert_equal 8, csv.last_column
assert_equal 6, csv.last_column
end
end

Expand Down

0 comments on commit be42072

Please sign in to comment.