Mailinglist Archive: yast-commit (883 mails)

< Previous Next >
[yast-commit] <rest-service> master : load test_helper by relative path
  • From: Klaus Kämpf <kkaempf@xxxxxxx>
  • Date: Tue, 7 Jul 2009 14:05:07 +0200
  • Message-id: <E1MO9QM-0000cm-Vr@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit ec4251c80725644077232fa8caca748d80050f45
Author: Klaus Kämpf <kkaempf@xxxxxxx>
Date: Tue Jul 7 14:05:07 2009 +0200

load test_helper by relative path
---
webservice/test/functional/permissions_test.rb | 5 +++++
.../test/functional/resource_registration_test.rb | 2 +-
webservice/test/functional/resource_route_test.rb | 2 +-
.../test/functional/resources_controller_test.rb | 2 +-
webservice/test/functional/scr_test.rb | 2 +-
5 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/webservice/test/functional/permissions_test.rb
b/webservice/test/functional/permissions_test.rb
index 6251ab6..4e754e8 100644
--- a/webservice/test/functional/permissions_test.rb
+++ b/webservice/test/functional/permissions_test.rb
@@ -1,4 +1,9 @@
+#
+# Testing PermissionsController
+#
+
require File.expand_path(File.dirname(__FILE__) + "/../test_helper")
+
require 'test/unit'
require 'rubygems'
require "scr"
diff --git a/webservice/test/functional/resource_registration_test.rb
b/webservice/test/functional/resource_registration_test.rb
index 14fb944..2144884 100644
--- a/webservice/test/functional/resource_registration_test.rb
+++ b/webservice/test/functional/resource_registration_test.rb
@@ -5,7 +5,7 @@
#
# See resource_route_test.rb for resource route tests.
#
-require 'test_helper'
+require File.expand_path(File.dirname(__FILE__) + "/../test_helper")

class TestPlugin
attr_reader :directory
diff --git a/webservice/test/functional/resource_route_test.rb
b/webservice/test/functional/resource_route_test.rb
index b67ddf5..c373e15 100644
--- a/webservice/test/functional/resource_route_test.rb
+++ b/webservice/test/functional/resource_route_test.rb
@@ -3,7 +3,7 @@
#
# This tests route creation from the resource database
#
-require 'test_helper'
+require File.expand_path(File.dirname(__FILE__) + "/../test_helper")

class TestPlugin
attr_reader :directory
diff --git a/webservice/test/functional/resources_controller_test.rb
b/webservice/test/functional/resources_controller_test.rb
index 3723e9f..b9a7598 100644
--- a/webservice/test/functional/resources_controller_test.rb
+++ b/webservice/test/functional/resources_controller_test.rb
@@ -3,7 +3,7 @@
#
# This tests proper returns for resource inspection
#
-require 'test_helper'
+require File.expand_path(File.dirname(__FILE__) + "/../test_helper")

class TestPlugin
attr_reader :directory
diff --git a/webservice/test/functional/scr_test.rb
b/webservice/test/functional/scr_test.rb
index 332d6dc..8f1e93e 100644
--- a/webservice/test/functional/scr_test.rb
+++ b/webservice/test/functional/scr_test.rb
@@ -3,7 +3,7 @@
#
# This tests lib/scr, the Scr proxy for YaST D-Bus
#
-require 'test_helper'
+require File.expand_path(File.dirname(__FILE__) + "/../test_helper")

class ScrTest < ActiveSupport::TestCase

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages