soap-object 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,37 @@
1
+ require 'spec_helper'
2
+
3
+ class WithSslOptions
4
+ include SoapObject
5
+
6
+ ssl_options do |opts|
7
+ opts.verify_mode = :peer
8
+ opts.version = :SSLv2
9
+ end
10
+
11
+ end
12
+
13
+ describe SoapObject do
14
+ let(:client) { double('client') }
15
+ let(:platform) {double('savon')}
16
+
17
+ before do
18
+ allow(platform).to receive(:client).and_return(client)
19
+ end
20
+
21
+ context 'when setting client ssl options' do
22
+
23
+ it 'should allow one to enable SSL verification' do
24
+ expect(platform).to receive(:client).with(hash_including(ssl_verify_mode: :peer))
25
+
26
+ WithSslOptions.new(platform)
27
+ end
28
+
29
+ it 'should allow one to set SSL version' do
30
+ expect(platform).to receive(:client).with(hash_including(ssl_version: :SSLv2))
31
+
32
+ WithSslOptions.new(platform)
33
+ end
34
+ end
35
+
36
+
37
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,6 @@
1
- # encoding: utf-8
2
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
-
4
- require 'rspec'
5
- require 'soap-object'
6
-
1
+ # encoding: utf-8
2
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
+
4
+ require 'rspec'
5
+ require 'soap-object'
6
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soap-object
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey S. Morgan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-03 00:00:00.000000000 Z
12
+ date: 2015-10-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon
@@ -79,10 +79,13 @@ files:
79
79
  - lib/soap-object.rb
80
80
  - lib/soap-object/class_methods.rb
81
81
  - lib/soap-object/factory.rb
82
+ - lib/soap-object/ssl_options.rb
82
83
  - lib/soap-object/version.rb
83
84
  - soap-object.gemspec
85
+ - spec/lib/client_options_spec.rb
84
86
  - spec/lib/factory_spec.rb
85
87
  - spec/lib/soap_object_spec.rb
88
+ - spec/lib/ssl_options_spec.rb
86
89
  - spec/spec_helper.rb
87
90
  homepage: http://github.com/cheezy/soap-object
88
91
  licenses: []
@@ -103,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
106
  version: '0'
104
107
  requirements: []
105
108
  rubyforge_project:
106
- rubygems_version: 2.0.14
109
+ rubygems_version: 2.4.8
107
110
  signing_key:
108
111
  specification_version: 4
109
112
  summary: Wrapper around SOAP service calls to make it easy to test
@@ -112,6 +115,8 @@ test_files:
112
115
  - features/step_definitions/basic_functionality_steps.rb
113
116
  - features/support/env.rb
114
117
  - features/wsdl/uszip.asmx.wsdl.xml
118
+ - spec/lib/client_options_spec.rb
115
119
  - spec/lib/factory_spec.rb
116
120
  - spec/lib/soap_object_spec.rb
121
+ - spec/lib/ssl_options_spec.rb
117
122
  - spec/spec_helper.rb