mirror of
https://github.com/wahyd4/libr-2.git
synced 2026-08-16 16:55:59 +10:00
27 lines
526 B
Ruby
27 lines
526 B
Ruby
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
|