Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

fix #105 user_test未完 #109

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions spec/controllers/api/v1/controller_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
require 'spec_helper'

RSpec.describe Api::V1::UsersController, type: :controller do
describe 'GET /api/v1/current_user' do
end

describe 'GET /api/v1/current_user/icon' do
end



describe 'GET /api/v1/users/:id' do
let(:user) { create(:user) }
before { @users = [user] }
it 'returns user with :id' do
get "/api/v1/users/#{user.id}" do
expect(JSON.parse(response.body)['name']).to eq user.name
end
end
end
describe 'GET /users/:id/bookmarks' do
end
end