Mailinglist Archive: yast-commit (477 mails)

< Previous Next >
[yast-commit] rest-service : branch, master, updated.
  • From: git version control <git@xxxxxxxxxxxxxxxx>
  • Date: Tue, 30 Jun 2009 10:26:05 +0200
  • Message-id: <E1MLYfF-00022x-Ln@xxxxxxxxxxxxxxxx>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "YaST web service".

The branch, master has been updated
via 647af391acaac3676d0c501678efca61fcb2d7c0 (commit)
from eb85d3bbcbee0cf46d4c08812369a09d91775b4a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 647af391acaac3676d0c501678efca61fcb2d7c0
Author: Josef Reidinger <jreidinger@xxxxxxx>
Date: Tue Jun 30 10:33:34 2009 +0200

solve testing controller fields without getter

-----------------------------------------------------------------------

Summary of changes and diff:
.../app/controllers/language_controller.rb | 1 -
.../test/functional/language_controller_test.rb | 6 +++---
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/plugins/language/app/controllers/language_controller.rb
b/plugins/language/app/controllers/language_controller.rb
index c4729eb..de95cfc 100644
--- a/plugins/language/app/controllers/language_controller.rb
+++ b/plugins/language/app/controllers/language_controller.rb
@@ -3,7 +3,6 @@ include ApplicationHelper
class LanguageController < ApplicationController

before_filter :login_required
- attr_reader :language

#--------------------------------------------------------------------------------
#
# actions
diff --git a/plugins/language/test/functional/language_controller_test.rb
b/plugins/language/test/functional/language_controller_test.rb
index 25a931a..5fc57a7 100644
--- a/plugins/language/test/functional/language_controller_test.rb
+++ b/plugins/language/test/functional/language_controller_test.rb
@@ -65,9 +65,9 @@ class LanguageControllerTest < ActionController::TestCase

def check_update_result
assert_response :success
- assert_equal @controller.language.language, Data[:language][:current]
- assert_equal @controller.language.utf8, Data[:language][:utf8]
- assert_equal @controller.language.rootlocale, Data[:language][:rootlocale]
+ assert_equal assigns["language"].language, Data[:language][:current]
+ assert_equal assigns["language"].utf8, Data[:language][:utf8]
+ assert_equal assigns["language"].rootlocale, Data[:language][:rootlocale]
end

def test_update_noparams


hooks/post-receive
--
YaST web service
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >