Use simplecov for code coverage, rcov does not support ruby>=1.9.

git-svn-id: http://svn.redmine.org/redmine@13691 e93f8b46-1217-0410-a6f0-8f06a7374b81
Use scope.

git-svn-id: http://svn.redmine.org/redmine@13692 e93f8b46-1217-0410-a6f0-8f06a7374b81
Removed broken and unused method added in r5313.

git-svn-id: http://svn.redmine.org/redmine@13693 e93f8b46-1217-0410-a6f0-8f06a7374b81
Get version ids with a single query (was n+1).

git-svn-id: http://svn.redmine.org/redmine@13694 e93f8b46-1217-0410-a6f0-8f06a7374b81
Adds a few tests.

git-svn-id: http://svn.redmine.org/redmine@13695 e93f8b46-1217-0410-a6f0-8f06a7374b81
Rescue RecordNotSaved in #save_with_content.

git-svn-id: http://svn.redmine.org/redmine@13696 e93f8b46-1217-0410-a6f0-8f06a7374b81
Removed unused helper.

git-svn-id: http://svn.redmine.org/redmine@13697 e93f8b46-1217-0410-a6f0-8f06a7374b81