wsdsl 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/wsdsl.rb +2 -2
- data/spec/wsdsl_spec.rb +11 -0
- data/wsdsl.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/wsdsl.rb
CHANGED
@@ -80,13 +80,13 @@ class WSDSL
|
|
80
80
|
#
|
81
81
|
# @return [String]
|
82
82
|
# @api public
|
83
|
-
|
83
|
+
attr_accessor :action
|
84
84
|
|
85
85
|
# Name of the controller associated with the service
|
86
86
|
#
|
87
87
|
# @return [String]
|
88
88
|
# @api public
|
89
|
-
|
89
|
+
attr_accessor :controller_name
|
90
90
|
|
91
91
|
# Name of the service
|
92
92
|
#
|
data/spec/wsdsl_spec.rb
CHANGED
@@ -84,6 +84,17 @@ describe WSDSL do
|
|
84
84
|
service.controller_name.should == "PlayerController"
|
85
85
|
end
|
86
86
|
|
87
|
+
|
88
|
+
it "should let overwrite the controller name and action after initialization" do
|
89
|
+
describe_service "players/:id.xml" do |service|
|
90
|
+
service.controller_name = "CustomController"
|
91
|
+
service.action = "foo"
|
92
|
+
end
|
93
|
+
service = WSList.all.find{|s| s.url == "players/:id.xml"}
|
94
|
+
service.controller_name.should == "CustomController"
|
95
|
+
service.action.should == "foo"
|
96
|
+
end
|
97
|
+
|
87
98
|
describe WSDSL::Params do
|
88
99
|
|
89
100
|
before(:all) do
|
data/wsdsl.gemspec
CHANGED