Sha256: 96d52725c7d0e65efd5c326718e8404c1cdab42d257f8e8f2de29e66d9b635ed
Contents?: true
Size: 936 Bytes
Versions: 2
Compression:
Stored size: 936 Bytes
Contents
require 'helper' class TestRemoteTable < Test::Unit::TestCase should "open an XLSX" do t = RemoteTable.new 'www.customerreferenceprogram.org/uploads/CRP_RFP_template.xlsx' assert_equal "Secure encryption of all data", t[5]["Requirements"] end should "add a row hash to every row" do t = RemoteTable.new(:url => 'www.customerreferenceprogram.org/uploads/CRP_RFP_template.xlsx') assert_equal "59d68cfc1cd6b32f5b333d6f0e4bea6d", t[5]['row_hash'] end should "open a google doc" do t = RemoteTable.new 'http://spreadsheets.google.com/pub?key=tObVAGyqOkCBtGid0tJUZrw' assert_equal 'Seamus Abshere', t[0]['name'] end should "return an ordered hash" do t = RemoteTable.new 'http://spreadsheets.google.com/pub?key=tObVAGyqOkCBtGid0tJUZrw' if RUBY_VERSION >= '1.9' assert_equal ::Hash, t[0].class else assert_equal ::ActiveSupport::OrderedHash, t[0].class end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
remote_table-1.0.3 | test/test_remote_table.rb |
remote_table-1.0.2 | test/test_remote_table.rb |