Fix RSpec/MultipleSubjects cop (#24738)
This commit is contained in:
parent
bdcd8a9e88
commit
cf18cc2891
8 changed files with 11 additions and 25 deletions
|
@ -8,10 +8,10 @@ describe EmojisController do
|
|||
let(:emoji) { Fabricate(:custom_emoji) }
|
||||
|
||||
describe 'GET #show' do
|
||||
subject(:response) { get :show, params: { id: emoji.id, format: :json } }
|
||||
|
||||
subject(:body) { JSON.parse(response.body, symbolize_names: true) }
|
||||
|
||||
let(:response) { get :show, params: { id: emoji.id, format: :json } }
|
||||
|
||||
it 'returns the right response' do
|
||||
expect(response).to have_http_status 200
|
||||
expect(body[:name]).to eq ':coolcat:'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue