Sha256: cec63c06d4a96dbc7c7fa9e2ab441eb18e45293081d5ea3e5f6f6786af612e9d
Contents?: true
Size: 559 Bytes
Versions: 4
Compression:
Stored size: 559 Bytes
Contents
require 'test/unit' require 'kooaba' class BaseTest < Test::Unit::TestCase def test_data_key Kooaba.data_key = "123" assert_equal Kooaba.data_key, "123" end def test_query_key Kooaba.query_key = "123" assert_equal Kooaba.query_key, "123" end def test_upload_no_key assert_raise ArgumentError do Kooaba.data_key = nil Kooaba.upload(Kooaba::Item.new, "test") end end def test_query_no_key assert_raise ArgumentError do Kooaba.query_key = nil Kooaba.query("/path/to/image") end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
kooaba-0.0.7 | test/test_base.rb |
kooaba-0.0.6 | test/test_base.rb |
kooaba-0.0.5 | test/test_base.rb |
kooaba-0.0.4 | test/test_base.rb |