Fixing spec suite after the removal of Logger
Organizing Rails version specific code