zinx 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/test/test.rb CHANGED
@@ -1,12 +1,19 @@
1
- require 'test/unit'
2
- require 'zinx'
3
- require 'awesome_print'
4
- require 'zlib'
5
-
6
- class ZinxTest < Test::Unit::TestCase
7
- def test_simple_search
8
- result = Zinx::Client.search 'something'
9
- assert result.count > 0, 'nothing returned from search'
10
- assert_equal result.first.error, ''
11
- end
1
+ require 'test/unit'
2
+ require 'zinx'
3
+ require 'awesome_print'
4
+ require 'zlib'
5
+
6
+ class ZinxTest < Test::Unit::TestCase
7
+ def test_simple_search
8
+ result = Zinx::Client.search 'something'
9
+ assert result.count > 0, 'nothing returned from search'
10
+ assert_equal result.first.error, ''
11
+ end
12
+
13
+ def test_something
14
+ result = Zinx::Client.search 'something' do |s|
15
+ s.run
16
+ end
17
+ assert_equal result[0].class, Zinx::Result.new({}).class
18
+ end
12
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zinx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-15 00:00:00.000000000 Z
12
+ date: 2012-03-15 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: Simple DSL for Sphinx Search Server
15
15
  email: gabrielhora@gmail.com
@@ -43,7 +43,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
43
43
  version: '0'
44
44
  requirements: []
45
45
  rubyforge_project:
46
- rubygems_version: 1.8.17
46
+ rubygems_version: 1.8.19
47
47
  signing_key:
48
48
  specification_version: 3
49
49
  summary: Simple DSL for Sphinx Search Server