[Solved] Syntax error, unexpected ‘:’, expecting ‘)’ – Rails 2.1.0


When I disabled spring, was able to run the rake tasks.

DISABLE_SPRING=1 bundle exec rake test:read_message

But not sure what is the root cause of issue, it works fine in my local without disabling the spring but not in prod.

solved Syntax error, unexpected ‘:’, expecting ‘)’ – Rails 2.1.0