clickclient 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/test/test_base.rb ADDED
@@ -0,0 +1,61 @@
1
+ require File.dirname(__FILE__) + '/test_helper.rb'
2
+
3
+ require "runit/testcase"
4
+
5
+ class ClickClient_BaseTest < RUNIT::TestCase
6
+
7
+ def setup
8
+ end
9
+
10
+ def teardown
11
+ end
12
+
13
+ def test_equals
14
+ model = TestModel.new("a","aaa")
15
+ model2 = TestModel.new("a","aaa")
16
+ assert model != model2
17
+ assert model.eql?(model2)
18
+ assert model.hash == model2.hash
19
+
20
+ model3 = TestModel.new("b","aaa")
21
+ assert model != model3
22
+ assert !model.eql?(model3)
23
+ assert model.hash != model3.hash
24
+ assert model2 != model3
25
+ assert !model2.eql?(model3)
26
+ assert model2.hash != model3.hash
27
+
28
+ model3 = TestModel.new("b","bbb")
29
+ assert model != model3
30
+ assert !model.eql?(model3)
31
+ assert model.hash != model3.hash
32
+ assert model2 != model3
33
+ assert !model2.eql?(model3)
34
+ assert model2.hash != model3.hash
35
+
36
+ model3 = nil
37
+ assert model != model3
38
+ assert !model.eql?(model3)
39
+ assert model.hash != model3.hash
40
+ assert model2 != model3
41
+ assert !model2.eql?(model3)
42
+ assert model2.hash != model3.hash
43
+
44
+ end
45
+
46
+ def test_set_get
47
+ model = TestModel.new("a","a")
48
+ assert_equals model.text, "a"
49
+
50
+ model.text = "x"
51
+ assert_equals model.text, "x"
52
+ end
53
+
54
+ class TestModel < ClickClient::Base
55
+ def initialize( title, text )
56
+ @title = title, text
57
+ @text = text
58
+ end
59
+ end
60
+
61
+ end
@@ -0,0 +1,2 @@
1
+ require 'test/unit'
2
+ require File.dirname(__FILE__) + '/../lib/clickclient'
metadata ADDED
@@ -0,0 +1,69 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.4
3
+ specification_version: 1
4
+ name: clickclient
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.0.1
7
+ date: 2007-12-15 00:00:00 +09:00
8
+ summary: CLICK Securities Web Service Client For Ruby.
9
+ require_paths:
10
+ - lib
11
+ email: masaya.yamauchi@gmail.com
12
+ homepage: http://clickclient.rubyforge.org
13
+ rubyforge_project: clickclient
14
+ description: CLICK Securities Web Service Client For Ruby.
15
+ autorequire:
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: true
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
29
+ authors:
30
+ - masaya yamauchi
31
+ files:
32
+ - History.txt
33
+ - License.txt
34
+ - README.txt
35
+ - lib/clickclient.rb
36
+ - lib/clickclient/version.rb
37
+ - lib/clickclient/common.rb
38
+ - lib/clickclient/fx.rb
39
+ - test/test_helper.rb
40
+ - test/alltests.rb
41
+ - test/connect_test_fx.rb
42
+ - test/test_base.rb
43
+ - example/example_use_localserver.rb
44
+ test_files:
45
+ - test/test_helper.rb
46
+ - test/test_base.rb
47
+ rdoc_options:
48
+ - --main
49
+ - README.txt
50
+ extra_rdoc_files:
51
+ - History.txt
52
+ - License.txt
53
+ - README.txt
54
+ executables: []
55
+
56
+ extensions: []
57
+
58
+ requirements: []
59
+
60
+ dependencies:
61
+ - !ruby/object:Gem::Dependency
62
+ name: httpclient
63
+ version_requirement:
64
+ version_requirements: !ruby/object:Gem::Version::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 2.1.2
69
+ version: