ref: refs/heads/master commit a6f45d6df57d9a450d0623999f9a4685f626e97b Author: Josef Reidinger <jreidinger@suse.cz> Date: Fri Sep 25 15:34:03 2009 +0200 enrich test to show problems with time path for backend (systemtimes instead time) --- .../test/functional/resources_registration_test.rb | 4 ++++ .../good/config/resources/system_time.yml | 4 ++++ 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/webservice/test/functional/resources_registration_test.rb b/webservice/test/functional/resources_registration_test.rb index bf1664e..f9dd9b7 100644 --- a/webservice/test/functional/resources_registration_test.rb +++ b/webservice/test/functional/resources_registration_test.rb @@ -28,6 +28,10 @@ class ResourceRegistrationTest < ActiveSupport::TestCase ResourceRegistration.register_plugin plugin assert !ResourceRegistration.resources.empty? + assert_not_nil ResourceRegistration.resources["org.opensuse.yast.modules.yapi.time"][0] + time = ResourceRegistration.resources["org.opensuse.yast.modules.yapi.time"][0] + assert_equal "systemtimes", time[:controller] + assert time[:singular] end # Create nested resources from .yml file diff --git a/webservice/test/resource_fixtures/good/config/resources/system_time.yml b/webservice/test/resource_fixtures/good/config/resources/system_time.yml new file mode 100644 index 0000000..29cdbd4 --- /dev/null +++ b/webservice/test/resource_fixtures/good/config/resources/system_time.yml @@ -0,0 +1,4 @@ +interface: org.opensuse.yast.modules.yapi.time +controller: systemtimes +singular: true + -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org