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