horse_power 0.2.0 → 0.2.1
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1a7fbaf8160ae259770561c1abbc8b26e3713a7
|
4
|
+
data.tar.gz: eb8c4f2208c156f779d65ed6eb8b7ced7080a3b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a21b4d24d132085a5127e4de599b578ab5ddde6362be0270d0ba4748675337bfd91a45b46409664fb3a53671b1dd8828b2a8166517966b75fa0bf127ad7ef3ab
|
7
|
+
data.tar.gz: f4d05f4f6a8e0cbcb8a146954fa2cc771f13c9a5944b8095a30b87b32c0d3bb1c26eec3f225ca4429b8da06284a5c3d6548c323214b5638b2ce0e3a0a5805692
|
@@ -16,6 +16,12 @@ RSpec.describe "<%= HorsePower.get_camel_plural(resource_name) %> controller res
|
|
16
16
|
:id => "1"
|
17
17
|
)
|
18
18
|
end
|
19
|
+
it "routes to showAll" do
|
20
|
+
expect(:post => "/api/<%= api_version %>/<%= HorsePower.get_plural(resource_name) %>/showAll").to route_to(
|
21
|
+
:controller => "api/v<%= api_version %>/<%= HorsePower.get_plural(resource_name) %>",
|
22
|
+
:action => "showAll"
|
23
|
+
)
|
24
|
+
end
|
19
25
|
it "routes to create" do
|
20
26
|
expect(:post => "/api/<%= api_version %>/<%= HorsePower.get_plural(resource_name) %>/").to route_to(
|
21
27
|
:controller => "api/v<%= api_version %>/<%= HorsePower.get_plural(resource_name) %>",
|
@@ -29,6 +35,12 @@ RSpec.describe "<%= HorsePower.get_camel_plural(resource_name) %> controller res
|
|
29
35
|
:id => "1"
|
30
36
|
)
|
31
37
|
end
|
38
|
+
it "routes to updateAll" do
|
39
|
+
expect(:post => "/api/<%= api_version %>/<%= HorsePower.get_plural(resource_name) %>/updateAll").to route_to(
|
40
|
+
:controller => "api/v<%= api_version %>/<%= HorsePower.get_plural(resource_name) %>",
|
41
|
+
:action => "updateAll"
|
42
|
+
)
|
43
|
+
end
|
32
44
|
it "routes to update" do
|
33
45
|
expect(:patch => "/api/<%= api_version %>/<%= HorsePower.get_plural(resource_name) %>/1/").to route_to(
|
34
46
|
:controller => "api/v<%= api_version %>/<%= HorsePower.get_plural(resource_name) %>",
|
@@ -43,4 +55,10 @@ RSpec.describe "<%= HorsePower.get_camel_plural(resource_name) %> controller res
|
|
43
55
|
:id => "1"
|
44
56
|
)
|
45
57
|
end
|
58
|
+
it "routes to destroyAll" do
|
59
|
+
expect(:post => "/api/<%= api_version %>/<%= HorsePower.get_plural(resource_name) %>/destroyAll").to route_to(
|
60
|
+
:controller => "api/v<%= api_version %>/<%= HorsePower.get_plural(resource_name) %>",
|
61
|
+
:action => "destroyAll"
|
62
|
+
)
|
63
|
+
end
|
46
64
|
end
|
data/lib/horse_power/version.rb
CHANGED