Skip to content

Commit 778758e

Browse files
committed
Removed test based on deleted 'token' column (future issue(s): reimplement and test BaseController for signed-in user endpoints)
1 parent 80472cc commit 778758e

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

spec/requests/api/v1/base_spec.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ def index
2020
describe "GET #index" do
2121
let(:user) { create(:volunteer) }
2222

23-
it "returns http success when valid credentials" do
24-
get "/index", headers: {"Authorization" => "Token token=#{user.api_credential.return_new_api_token![:api_token]}, email=#{user.email}"}
25-
expect(response).to have_http_status(:success)
26-
expect(response.body).to eq({message: "Successfully autenticated"}.to_json)
27-
end
28-
2923
it "returns http unauthorized if invalid token" do
3024
get "/index", headers: {"Authorization" => "Token token=, email=#{user.email}"}
3125
expect(response).to have_http_status(:unauthorized)

0 commit comments

Comments
 (0)