Feb 03

Date published: 2-3-2014

Rails version: 4.0.0

RSpec

In my last tutorial I demonstrated how to setup tests for a model using the testing framework included with Rails. In this tutorial, I want to try out a different testing framework called RSpec to see how it compares to what we did before. RSpec is one of the most popular ways to test Rails apps, so if you work with Rails, you’re bound to run into projects that use it for testing. Continue reading »

Tagged with:
Jan 20

Date published: 1-20-2014

Rails version: 4.0.0

Testing

One common task that developers should do when working on a project is to create tests that can be run to ensure that when we add new functionality to the project that it won’t break things that already exist. Rails already has a comprehensive test structure built in, and there are a ton of other resources that other developers have created to make testing easier. In this tutorial, I’m going to create tests for a basic User model using Rails’ test framework. Continue reading »

Tagged with:
preload preload preload