json_voorhees 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 08fdc19c1a51a55adc6bbc09eea9dcdd21d22b83
4
- data.tar.gz: 7870950028b58ee4d6041806408912bbbd09e56b
3
+ metadata.gz: fcf758e5381dd40d340150ab34c911ab63452fbb
4
+ data.tar.gz: 11412a96e41c91fae05ec0f88f23c18449f35bde
5
5
  SHA512:
6
- metadata.gz: 24803c5d6e4dbfef671a0bde3555a103065425ccdd82bab8175a2a094140ac97fa02da16d9a94d281d22dc4ee5f620ac3625d55582ed7febd9fef90cd4a75a60
7
- data.tar.gz: c11eec0a47b0f201e729dc2b06b694e031d696a4678cf2457854ada3287270f0256ba52236f947f35ce36dc0fbcea6aa08c795ede8c60ac780efe9550e6c605a
6
+ metadata.gz: 25232370e8d1ff792aa5ecf09fdac72d230aba1a265c76c925f283b7c3e5237129267b9c635a81696b7b600cb3f64864d5c5f96824ca13ccafbb9bc03186c816
7
+ data.tar.gz: 3ddd175e31c58d15902f92576d0b01eb076d767cd9144ddf13ced5ad0cc8dbe5fee7f3e81f341db8c41f4ea6b21db5373b2d16e1402bab126d51238581ceaf6e
@@ -141,7 +141,7 @@ RSpec.describe ::People::V1::User, :type => :request do
141
141
  user = FactoryGirl.create(:people_user_1,@attrs)
142
142
  token = user.tokens[0].auth_token
143
143
  header = {"Auth-Token" => token, "Email" => user.email}
144
- get 'api/1/users/logout', nil, header
144
+ post 'api/1/users/logout', nil, header
145
145
  expect(::People::V1::User.count).to eq(1)
146
146
  expect(response.status).to eq(200) #ok
147
147
  expect(::Arcadex::Token.count).to eq(0)
@@ -17,7 +17,7 @@ RSpec.describe "Users sign up process routing", :type => :routing do
17
17
  )
18
18
  end
19
19
  it "routes to logout" do
20
- expect(:get => "/api/1/users/logout").to route_to(
20
+ expect(:post => "/api/1/users/logout").to route_to(
21
21
  :controller => "people/api/v1/users",
22
22
  :action => "logout"
23
23
  )
@@ -48,7 +48,7 @@ module People
48
48
  end
49
49
  end
50
50
 
51
- # GET /api/1/users/logout
51
+ # POST /api/1/users/logout
52
52
  def logout
53
53
  #Destroy the current token
54
54
  token = current_token
@@ -18,7 +18,7 @@ People::Engine.routes.draw do
18
18
  # /api/1/users/login
19
19
  post 'login', to: "api/v1/users#login"
20
20
  # /api/1/users/logout
21
- get 'logout', to: "api/v1/users#logout"
21
+ post 'logout', to: "api/v1/users#logout"
22
22
  end
23
23
  <% end %>
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module JsonVoorhees
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_voorhees
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cleophus Robinson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-10 00:00:00.000000000 Z
11
+ date: 2014-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails