washout_builder 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjljN2I3ZWFmNjVhZDRjMjU1NmFjN2ZlMjhkNjFlMjNkMzM3NDRmNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjRiZmY1MWRlZTlhNjI5Y2RiYmU4Y2ZjMDYyN2VkZGNlODhjODBhYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2IwOTRjY2U4YTcwYzcxZGJhYjcwYmVlNjAxODY0ZGQ2NmY1MmZjNzQ2OTdl
|
10
|
+
OWRiNWRmOWU5M2VjNDY3ZDFmZWZjOTQwNDNkZjVmNGY2NTMwMmVmODZiNGU5
|
11
|
+
MmUwMmE2ZTliODY5M2M3Mjc4Zjg5ZjA1YTlhMGQxNWM5MmRlOWE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDkyMzcxYTMwZmM4MmUwZDY3ZjA3NDRlMDY4MTJlZjE5MzQ0YWMyYzZmYmQ3
|
14
|
+
MjBhZWFlMTIwZWMwZjMwYjRhODU5Yzc3ZmE4YWRiODJjNTY4Mzc4MzVhZWUz
|
15
|
+
M2JhMzIwZWI3MTk1ZDAxY2U2Mzg1ZDA1NzgxZTMzYjI5NWE2ZWE=
|
@@ -39,9 +39,9 @@ xml.html( "xmlns" => "http://www.w3.org/1999/xhtml" ) {
|
|
39
39
|
|
40
40
|
@services.each do |service|
|
41
41
|
xml.h1 "#{service['service_name']} Soap Webservice"
|
42
|
-
xml.p {|pre| pre << "Documentation URI: <a href='#{service['documentation_url']}'
|
43
|
-
xml.p {|pre| pre << "Endpoint URI: <
|
44
|
-
xml.p {|pre| pre << "WSDL URI: <a href='#{service['namespace']}'
|
42
|
+
xml.p {|pre| pre << "Documentation URI: <a href='#{service['documentation_url']}'>#{service['documentation_url']}</a>" }
|
43
|
+
xml.p {|pre| pre << "Endpoint URI: <a href='javascript:void(0)'>#{service['endpoint']}</a>" }
|
44
|
+
xml.p {|pre| pre << "WSDL URI: <a href='#{service['namespace']}'>#{service['namespace']}</a>" }
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
@@ -1,5 +1,11 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
-
|
2
|
+
mock_controller do
|
3
|
+
soap_action 'dispatcher_method', :args => nil, :return => nil
|
4
|
+
|
5
|
+
def dispatcher_method
|
6
|
+
#nothing
|
7
|
+
end
|
8
|
+
end
|
3
9
|
describe WashoutBuilder::WashoutBuilderController, :type => :controller do
|
4
10
|
routes { WashoutBuilder::Engine.routes }
|
5
11
|
|
@@ -8,13 +14,16 @@ describe WashoutBuilder::WashoutBuilderController, :type => :controller do
|
|
8
14
|
namespace: "/api/wsdl",
|
9
15
|
) }
|
10
16
|
|
17
|
+
let(:washout_builder) { stub(:root_url => "#{request.protocol}#{request.host_with_port}/")}
|
18
|
+
|
11
19
|
before(:each) do
|
12
20
|
ApiController.stubs(:soap_config).returns(soap_config)
|
21
|
+
controller.stubs(:washout_builder).returns(washout_builder)
|
13
22
|
end
|
14
23
|
|
15
24
|
it "gets the services" do
|
16
25
|
get :all
|
17
|
-
assigns(:services).should eq([{'service_name'=>"Api", 'namespace'=>"/api/wsdl", 'endpoint'=>"/api/action", 'documentation_url'=>"http://test.host/
|
26
|
+
assigns(:services).should eq([{'service_name'=>"Api", 'namespace'=>"/api/wsdl", 'endpoint'=>"/api/action", 'documentation_url'=>"http://test.host/Api"}])
|
18
27
|
end
|
19
28
|
|
20
29
|
it "renders the template" do
|