require 'rails_helper' RSpec.describe Api::V1::PostsController, type: :controller do describe "GET #create" do it "returns http success" do get :create expect(response).to have_http_status(:success) end end describe "GET #list" do it "returns http success" do get :list expect(response).to have_http_status(:success) end end describe "GET #index" do it "returns http success" do get :index expect(response).to have_http_status(:success) end end end