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: 74a9429a6b6ff1e06abc3f1010ca6bba229aea53
4
- data.tar.gz: 1cc768cbd9db5e3a58bac42cb2c32e5dada92ae0
3
+ metadata.gz: b1a7fbaf8160ae259770561c1abbc8b26e3713a7
4
+ data.tar.gz: eb8c4f2208c156f779d65ed6eb8b7ced7080a3b5
5
5
  SHA512:
6
- metadata.gz: 8081e40f69ec18e216eab7f59677c3b085618330de26f29af7ccae15b6d5f175ab1ef4550b1f86fafce7dfd76129c716bbed88d70aedecfc601164096543974c
7
- data.tar.gz: be50322fe5a2cfbb50edb86f3981a6cdb96a0c2d8d8200ce784fbe4509abeca196b91d66d1b0e87905c055bb03582bbe1ac71ecb348353c245202ac9d5229c56
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
@@ -1,3 +1,3 @@
1
1
  module HorsePower
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: horse_power
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cleophus Robinson IV