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

Version Path
appmap-0.42.1 spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb
appmap-0.42.1 spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb
appmap-0.42.0 spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb
appmap-0.42.0 spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb
appmap-0.41.2 spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb
appmap-0.41.2 spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb
appmap-0.41.1 spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb
appmap-0.41.1 spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb
appmap-0.41.0 spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb
appmap-0.41.0 spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb
appmap-0.40.0 spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb
appmap-0.40.0 spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb
appmap-0.39.1 spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb
appmap-0.39.1 spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb
appmap-0.39.0 spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb
appmap-0.39.0 spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb