update test to expects syntax
Revert "update test to expects syntax"

This reverts commit f1b3b9404d36bc5a51fb9df59187a77815b78d56.
Revert "dependency update for Rails 4 compatibility"

This reverts commit a52021037b7b4e671fb78ae0bdd37f3213e92c19.