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

Version Path
appmap-0.83.4 spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb
appmap-0.83.4 spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb
appmap-0.83.3 spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb
appmap-0.83.3 spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb
appmap-0.83.2 spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb
appmap-0.83.2 spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb
appmap-0.83.1 spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb
appmap-0.83.1 spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb
appmap-0.83.0 spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb
appmap-0.83.0 spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb
appmap-0.82.0 spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb
appmap-0.82.0 spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb
appmap-0.81.1 spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb
appmap-0.81.1 spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb
appmap-0.81.0 spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb
appmap-0.81.0 spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb
appmap-0.80.2 spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb
appmap-0.80.2 spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb
appmap-0.80.1 spec/fixtures/rails5_users_app/spec/controllers/users_controller_spec.rb
appmap-0.80.1 spec/fixtures/rails6_users_app/spec/controllers/users_controller_spec.rb