Sha256: ec1b9f9896609182816061965815b86697850a1ce536743da4a7f0a48b90685e
Contents?: true
Size: 694 Bytes
Versions: 4
Compression:
Stored size: 694 Bytes
Contents
require 'test/unit' require 'kooaba' class QueryTest < Test::Unit::TestCase def test_query_init query = Kooaba::Query.new( :image_path => "/path/to/image.png", :max_results => 2, :user_data => "some data" ) assert_equal query.image_path, "/path/to/image.png" assert_equal query.max_results, 2 assert_equal query.user_data, "some data" end def test_query_no_image assert_raise ArgumentError do query = Kooaba::Query.new() end end def test_default_parameters query = Kooaba::Query.new( :image_path => "/path/to/image.png" ) assert_equal query.max_results, 10 assert_equal query.user_data, nil end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
kooaba-0.0.7 | test/test_query.rb |
kooaba-0.0.6 | test/test_query.rb |
kooaba-0.0.5 | test/test_query.rb |
kooaba-0.0.4 | test/test_query.rb |