Sha256: 3cf9ed24e985323180ddc8cd422258a2fea56e9d7e2adf002fd37609c9040cbf
Contents?: true
Size: 546 Bytes
Versions: 16
Compression:
Stored size: 546 Bytes
Contents
require 'rails_helper' require 'rack/test' RSpec.describe UsersController, type: :controller do render_views describe 'GET /users', feature: 'Show all 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', feature: 'Show a user' 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
16 entries across 8 versions & 1 rubygems