Ok, we could actually run tests with Rails 4 now. Still a lots of failures.
Fix test for rails 4 by using real data instead of stubbing connections calls
Since we have switched to mysql2 gem for new versions of rails, let's not statically define connection info in the spec and pull it from AR configuration
Rails4 deprecation warnings fixing