Sha256: 6f4519dab93cc5f333ab646a74c213d57faa587024af0bb99073342cd020f1c7

Contents?: true

Size: 429 Bytes

Versions: 199

Compression:

Stored size: 429 Bytes

Contents

# frozen_string_literal: true

When 'I create a user' do
  @response = post '/api/users', login: 'alice'
end

Then(/the response status should be (\d+)/) do |status|
  expect(@response.status).to eq(status.to_i)
end

When 'I list the users' do
  @response = get '/api/users'
  @users = JSON.parse(@response.body)
end

Then 'the response should include the user' do
  expect(@users.map { |u| u['login'] }).to include('alice')
end

Version data entries

199 entries across 107 versions & 1 rubygems

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