Mailinglist Archive: yast-commit (1914 mails)

< Previous Next >
[yast-commit] <web-client> master : fix tests after change systemtime name
  • From: Josef Reidinger <jreidinger@xxxxxxx>
  • Date: Mon, 24 Aug 2009 15:37:54 +0200
  • Message-id: <E1Mlgpm-0006oN-Uj@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 81969f5f9395ac3eb56955005bf23e81d84ae602
Author: Josef Reidinger <jreidinger@xxxxxxx>
Date: Tue Aug 18 16:10:28 2009 +0200

fix tests after change systemtime name
---
.../systemtime/app/views/systemtime/index.rhtml | 4 ++--
.../test/functional/systemtime_controller_test.rb | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/plugins/systemtime/app/views/systemtime/index.rhtml
b/plugins/systemtime/app/views/systemtime/index.rhtml
index abf1cfa..070b7f4 100644
--- a/plugins/systemtime/app/views/systemtime/index.rhtml
+++ b/plugins/systemtime/app/views/systemtime/index.rhtml
@@ -31,7 +31,7 @@
<div class='plugin-icon'><img src='/icons/yast-ntp-client.png' alt="time
module"/></div>
<div class='plugin-content'>
<h2><%=_("Configure timezone")%></h2>
- <% form_tag '/system_time/update_timezone', :class => 'container' do %>
+ <% form_tag '/systemtime/update_timezone', :class => 'container' do %>
<table summary="<%= _("Table for settings timezone for target machine.")
%>">
<tr>

@@ -88,7 +88,7 @@
</p>
<% end %>
<h2><%=_("Manually configure time")%></h2>
- <% form_tag '/system_time/update_time', :class => 'container' do %>
+ <% form_tag '/systemtime/update_time', :class => 'container' do %>
<table summary="<%= _("Manual time configuration table, where user selects
data and time for target machine") %>">
<tr>
<td>
diff --git a/plugins/systemtime/test/functional/systemtime_controller_test.rb
b/plugins/systemtime/test/functional/systemtime_controller_test.rb
index 77977db..c2a258f 100644
--- a/plugins/systemtime/test/functional/systemtime_controller_test.rb
+++ b/plugins/systemtime/test/functional/systemtime_controller_test.rb
@@ -4,7 +4,7 @@ require File.expand_path(
File.join("test","validation_assert"), RailsParent.par
require 'rubygems'
require 'mocha'

-class SystemTimeControllerTest < ActionController::TestCase
+class SystemtimeControllerTest < ActionController::TestCase

class Proxy
attr_accessor :result, :permissions, :timeout
@@ -57,8 +57,8 @@ class SystemTimeControllerTest < ActionController::TestCase
end

def setup
- SystemTimeController.any_instance.stubs(:login_required)
- @controller = SystemTimeController.new
+ SystemtimeController.any_instance.stubs(:login_required)
+ @controller = SystemtimeController.new
@request = ActionController::TestRequest.new
# http://railsforum.com/viewtopic.php?id=1719
@request.session[:account_id] = 1 # defined in fixtures
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages