Commit 70ba12d1 authored by Peter Leitzen's avatar Peter Leitzen

Mirror intent in example name

parent ec24e644
...@@ -83,7 +83,7 @@ RSpec.describe API::Users do ...@@ -83,7 +83,7 @@ RSpec.describe API::Users do
describe 'GET /users/' do describe 'GET /users/' do
context 'when unauthenticated' do context 'when unauthenticated' do
it "does not contain the note of users" do it "does not contain certain fields" do
get api("/users"), params: { username: user.username } get api("/users"), params: { username: user.username }
expect(json_response.first).not_to have_key('note') expect(json_response.first).not_to have_key('note')
...@@ -93,7 +93,7 @@ RSpec.describe API::Users do ...@@ -93,7 +93,7 @@ RSpec.describe API::Users do
context 'when authenticated' do context 'when authenticated' do
context 'as a regular user' do context 'as a regular user' do
it 'does not contain the note of users' do it 'does not contain certain fields' do
get api("/users", user), params: { username: user.username } get api("/users", user), params: { username: user.username }
expect(json_response.first).not_to have_key('note') expect(json_response.first).not_to have_key('note')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment