Skip to content

Instantly share code, notes, and snippets.

@Tocacar
Created November 12, 2018 09:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tocacar/84ad161f428b9c38d65c2db3129a09f6 to your computer and use it in GitHub Desktop.
Save Tocacar/84ad161f428b9c38d65c2db3129a09f6 to your computer and use it in GitHub Desktop.
RSpec.describe "Users", type: :request do
describe "request list of all users" do
user = User.create(name: “Test user”)
get users_path
expect(response).to be_successful
expect(response.body).to include(“Test user”)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment