Tag Archives: Model

[Ruby on Rails] [TDD RSpec Part 2] [Test Model với TDD]


Trong bài trước chúng ta đã làm quen với TDD trong ruby và các bạn cũng đã có cái overview về TDD rồi. Bài này mình xin giới thiệu các áp dụng RSpec để test Model.

https://duetngyen.wordpress.com/2015/09/02/ruby-on-rails-tdd-rspec-part-2-test-model-voi-tdd/

Building a simple REST API using Node.js , Restify.js and MongoDB (Mongoose.js) – Part 3 – Defining a schema and using a Model


This is a third part of multi-part article. Here we take look at defining Jobs schema using Mongoose.js ODM. The first two parts are available here: Part 1 – Installations  and Part 2 – Creating Server. All related code is available here We begin by defining a schema for our application. In mongoose each schema […]

https://thejavanode.wordpress.com/2014/11/17/building-a-simple-rest-api-using-node-js-restify-js-and-mongodb-mongoose-js-part-3-defining-a-schema-and-using-a-modele/