[DRE-commits] r4484 - trunk/redmine/debian
Jérémy Lal
kapouer-guest at alioth.debian.org
Thu Dec 24 09:07:56 UTC 2009
Author: kapouer-guest
Date: 2009-12-24 09:07:56 +0000 (Thu, 24 Dec 2009)
New Revision: 4484
Modified:
trunk/redmine/debian/README.source
Log:
Explain how to run rake test, list current failures.
Modified: trunk/redmine/debian/README.source
===================================================================
--- trunk/redmine/debian/README.source 2009-12-24 09:07:42 UTC (rev 4483)
+++ trunk/redmine/debian/README.source 2009-12-24 09:07:56 UTC (rev 4484)
@@ -3,12 +3,12 @@
NOT what follows.
Notes from a discussion with upstream author:
-Redmine 0.8.x targets rails 2.1.2
+Redmine 0.8.7 targets rails 2.1.2
Redmine 0.9 targets rails 2.3
UPSTREAM TRUNK MIGRATION TO RAILS 2.3 HAS STARTED SINCE REVISION 2886
Until rails 2.3 enters debian, redmine debian package will keep using rails 2.2.3.
-All upstream revisions concerning rails 2.3 will be ignored, and either patched,
-either reverse-patched.
+All upstream revisions concerning rails 2.3 will be either ignored or patched to
+work with rails 2.2
Please note the diff from the pristine source contains only the debian/ folder.
@@ -23,3 +23,54 @@
Then build the package :
cd redmine-0.9.0~svnxxxx/
debuild
+
+
+* RAKE TEST
+1. dpkg-reconfigure redmine, add a "test" sqlite3 instance
+2. edit /etc/redmine/test/database.yml, copy 'production' section and rename it 'test'
+3. in /usr/share/redmine, run :
+ sudo -u www-data X_DEBIAN_SITEID=test RAILS_ENV=test rake test
+Install missing gems (e.g. thoughtbot-shoulda, nofxx-object_daddy) using gem install xxx
+To run tests with repositories, they must be uncompressed and put in the right place.
+
+4. These are rails 2.2 failures. It is not always clear wether the fix should be backported from rails 2.3,
+or the failure simply ignored since they could be considered minor failures.
+ 1) Failure:
+test_login_and_logout_should_clear_session(AccountTest)
+ [./test/integration/account_test.rb:191:in `test_login_and_logout_should_clear_session'
+ /usr/share/redmine/vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:94:in `__send__'
+ /usr/share/redmine/vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:94:in `run'
+ /usr/share/redmine/vendor/rails/actionpack/lib/action_controller/integration.rb:597:in `run']:
+login should reset session.
+<nil> expected to be != to
+<nil>.
+
+ 2) Failure:
+test_Add_a_user_as_an_anonymous_user_should_fail(AdminTest)
+ [./test/integration/admin_test.rb:47:in `test_Add_a_user_as_an_anonymous_user_should_fail'
+ /usr/share/redmine/vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:94:in `__send__'
+ /usr/share/redmine/vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:94:in `run'
+ /usr/share/redmine/vendor/rails/actionpack/lib/action_controller/integration.rb:597:in `run']:
+Expected response to be a redirect to <http://www.example.com/login?back_url=http%3A%2F%2Fwww.example.com%2Fusers%2Fnew> but was a redirect to <http://www.example.com/login?back_url=http%3A%2F%2Fwww.example.com%2Fusers%2Fadd>.
+
+ 3) Failure:
+test: get /news in :json format with a valid HTTP authentication should login as the user. (HttpBasicLoginWithApiTokenTest)
+ [./test/integration/http_basic_login_with_api_token_test.rb:63:in `__bind_1261645152_696173'
+ /var/lib/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
+ /var/lib/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: get /news in :json format with a valid HTTP authentication should login as the user. '
+ /usr/share/redmine/vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:94:in `__send__'
+ /usr/share/redmine/vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:94:in `run'
+ /usr/share/redmine/vendor/rails/actionpack/lib/action_controller/integration.rb:597:in `run']:
+<#<User id: 12, login: "usez7", hashed_password: "", firstname: "Bps", lastname: "Dpv", mail: "usev4 at example.com", mail_notification: false, admin: false, status: 1, last_login_on: nil, language: "", auth_source_id: nil, created_on: "2009-12-24 09:59:12", updated_on: "2009-12-24 09:59:12", type: "User", identity_url: nil>> expected but was
+<#<AnonymousUser id: 6, login: "", hashed_password: "1", firstname: "", lastname: "Anonymous", mail: "", mail_notification: false, admin: false, status: 0, last_login_on: nil, language: "", auth_source_id: nil, created_on: "2006-07-19 19:33:19", updated_on: "2006-07-19 19:33:19", type: "AnonymousUser", identity_url: nil>>.
+
+ 4) Failure:
+test: get /news in :json format with a valid HTTP authentication should respond with success. (HttpBasicLoginWithApiTokenTest)
+ [/var/lib/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/assertions.rb:55:in `assert_accepts'
+ /var/lib/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/action_controller/macros.rb:124:in `__bind_1261645153_57906'
+ /var/lib/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
+ /var/lib/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: get /news in :json format with a valid HTTP authentication should respond with success. '
+ /usr/share/redmine/vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:94:in `__send__'
+ /usr/share/redmine/vendor/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:94:in `run'
+ /usr/share/redmine/vendor/rails/actionpack/lib/action_controller/integration.rb:597:in `run']:
+Expected response to be a 200, but was 401
More information about the Pkg-ruby-extras-commits
mailing list