debitech_soap 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/debitech_soap/api.rb +1 -1
- data/lib/debitech_soap/version.rb +1 -1
- data/spec/debitech_soap_spec.rb +9 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/lib/debitech_soap/api.rb
CHANGED
@@ -37,7 +37,7 @@ module DebitechSoap
|
|
37
37
|
@api_credentials[:password] = opts[:password]
|
38
38
|
|
39
39
|
disable_stderr do
|
40
|
-
@client = SOAP::WSDLDriverFactory.new(File.join(File.dirname(__FILE__), "service.wsdl")).create_rpc_driver
|
40
|
+
@client = SOAP::WSDLDriverFactory.new(File.join(File.dirname(__FILE__), "../service.wsdl")).create_rpc_driver
|
41
41
|
end
|
42
42
|
|
43
43
|
define_java_wrapper_methods!
|
data/spec/debitech_soap_spec.rb
CHANGED
@@ -20,8 +20,16 @@ class MockSoapResultRuby19
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
+
describe DebitechSoap::API do
|
24
|
+
# When it can't find the wsdl file it throws an error. We need to ensure
|
25
|
+
# it can find the file (fixed regression bug).
|
26
|
+
it "can be initialized" do
|
27
|
+
DebitechSoap::API.new
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
23
31
|
describe DebitechSoap::API, "valid_credentials?" do
|
24
|
-
|
32
|
+
|
25
33
|
before do
|
26
34
|
@client = mock(Object)
|
27
35
|
SOAP::WSDLDriverFactory.stub!(:new).and_return(mock(Object, :create_rpc_driver => @client))
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: debitech_soap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Joakim Kolsj\xC3\xB6"
|