We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80472cc commit 778758eCopy full SHA for 778758e
1 file changed
spec/requests/api/v1/base_spec.rb
@@ -20,12 +20,6 @@ def index
20
describe "GET #index" do
21
let(:user) { create(:volunteer) }
22
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
-
29
it "returns http unauthorized if invalid token" do
30
get "/index", headers: {"Authorization" => "Token token=, email=#{user.email}"}
31
expect(response).to have_http_status(:unauthorized)
0 commit comments