Sha256: 46194ea982c976b161048610f336c05a9bab9df7dcaf08be159bd3f0dddf7234
Contents?: true
Size: 575 Bytes
Versions: 2
Compression:
Stored size: 575 Bytes
Contents
# frozen_string_literal: true require "rails_helper" RSpec.describe Api::V1::SessionsController, type: :request do describe "GET #show" do include_context "user_logged_in" before do get api_v1_user_path(user.id), headers: headers end context "when get user details success" do it "should return status 200" do expect(response.status).to eq 200 expect(json_response["success"]).to eq true expect(json_response["data"]["user"].present?).to eq true end end include_examples :user_authentication end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
n_base_rails-0.1.2 | lib/spec/controllers/api/v1/users_controller_spec.rb |
n_base_rails-0.1.1 | lib/spec/controllers/api/v1/users_controller_spec.rb |