12 Oct '15, 12am

Validating the FormKeep API

FormKeep’s administrative interface is an Ember application that consumes a Rails-backed JSON API. We test our JSON endpoints with RSpec’s request specs . Ensuring that the client and server adhere to a common contract is important. Without test coverage, the contract is implicit and often times brittle. Implementation changes on the server that change JSON payloads in unexpected ways pose problems for consumers. To guard against unexpected changes, we created json_matchers to validate the format of our JSON endpoints, making our contract explicit. Under the covers, json_matchers validates payloads against schemas conforming to the JSON Schema specification. Schemas serve as a codification of the client-server contract. Asserting responses adhere to a JSON Schema In order to verify that GET /api/forms serves JSON in the format our client expects, we’ll assert that it succe...

Full article: https://robots.thoughtbot.com/validating-the-formkeep-api

Tweets

Sepak Bola Api dan Durian di Pesantren Az Zuhri Ketileng

Sepak Bola Api dan Durian di Pesantren Az Zuhri...

jateng.tribunnews.com 12 Oct '15, 1am

PONDOK Pesantren Salafiyah Az Zuhri akan mengadakan sepak bola api dan durian tepat pada malam 1 Muharam, Selasa (13/10/20...

Validating Uniqueness Of Field(s) In Accepts_ne...

rubyflow.com 08 Oct '15, 3pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

SPAD dan LTA Lancar Kajian Pasaran Projek Kereta Api Berkelajuan Tinggi Kuala Lumpur–Singapura: Oleh rmf Kereta Api…

SPAD dan LTA Lancar Kajian Pasaran Projek Keret...

rmf7.wordpress.com 10 Oct '15, 6am

Kereta Api Berkelajuan Tinggi Kuala Lumpur – Singapura telah diumumkan olehPerdana Menteri Malaysia Dato’ Seri Mohd Najib ...