where to use byebug in rspecs
describe "Get#index" do
# let!(:contacts) { create :contact_us, account: account }
# before { get endpoint}
it 'returns list of Taxes' do
get TAX_URL, headers: @headers
byebug
json_data = json_response(response)
expect(response.status).to eq 200
end
end
.........................................................
we should use byebug in rails in rspecs ------- after request go
after this
get TAX_URL, headers: @headers
describe "Get#index" do
# let!(:contacts) { create :contact_us, account: account }
# before { get endpoint}
it 'returns list of Taxes' do
byebug
get TAX_URL, headers: @headers
json_data = json_response(response)
expect(response.status).to eq 200
end
end
Comments
Post a Comment