Sha256: 7c2c2209e9c9f96597de65b3aa5f35a07cf07583e30a6197e27d5e03f7d7903c

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

require 'test/unit'
require 'zinx'
require 'awesome_print'
require 'zlib'

class ZinxTest < Test::Unit::TestCase
	def test_simple_search
		result = Zinx::Client.search 'something'
		assert result.count > 0, 'nothing returned from search'
		assert_equal result.first.error, ''
	end

	def test_something
		result = Zinx::Client.search 'something' do |s|
			s.run
		end
		assert_equal result[0].class, Zinx::Result.new({}).class
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zinx-0.0.4 test/test.rb