Sha256: 0bf0982937032589a37cb3a09697baf6f97b780d2f9f30482f910af1848e6d2c
Contents?: true
Size: 524 Bytes
Versions: 1
Compression:
Stored size: 524 Bytes
Contents
require 'test_helper' class FunctionTest < ActiveSupport::TestCase def setup @api_key = 'test-api-key' @index = 'test' Khoj.config do |c| c.api_key = @api_key c.api_host = Khoj::Configuration::DEFAULTS[:api_host] end @client= Khoj.client(@index) @function = Khoj.function(@index) end test 'should be able to map document field type to geo_type' do response = @function.add('geo_location', :type => 'function_test') sleep(1) assert_equal true, response end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
khoj-0.0.1 | test/function_test.rb |