Slide 92
Slide 92 text
Example test 2
describe Api::MeetupsController, :type => :request do
describe "GET /meetups" do
it 'should return a list of meetups' do
# ...
get '/meetups'
expect(response).to have_http_status(:success)
expect(response).to match_json_schema("meetups")
end
end
end
2 https://github.com/thoughtbot/json_matchers
92/98 — VarnaConf 2019 | @specter_bg