vendredi 18 mai 2018

how to run a test for grape api written in spec/request/

I followed this grape api test to write a test in spec/request/avatars.rb file, like

describe Twitter::API do
  context 'GET /api/avatars' do
    it 'returns an array of avatars' do
      get '/api/avatars'
      expect(response.status).to eq(200)
    end
  end
end

Once its written than how to run it to know that if it passed or not. (I am quite new to writing tests)

Aucun commentaire:

Enregistrer un commentaire