Use Rspec, Guard, Spork for testing. Make test for Card model
Test Card model using Rspec, FactoryGirl, Spork and Guard
Rafactor
Refactor