Specs updated for usage under the rails v.4.1.0