Sha256: 13b7de4b8ee998e82a6e406ab1553df584222fc4f19bce72292f59743486f013
Contents?: true
Size: 495 Bytes
Versions: 164
Compression:
Stored size: 495 Bytes
Contents
require 'rails_helper' require 'rack/test' RSpec.describe UsersController, type: :controller do render_views describe 'GET /users' do before do User.create login: 'alice' end it 'lists the users' do get :index expect(response).to be_ok end end describe 'GET /users/:login' do before do User.create login: 'alice' end it 'shows the user' do get :show, params: { id: 'alice' } expect(response).to be_ok end end end
Version data entries
164 entries across 82 versions & 1 rubygems