[DRE-commits] [ruby-aruba] 25/98: Make require_relative => require to make ruby 1.8.7 happy

Hideki Yamane henrich at moszumanska.debian.org
Tue Mar 22 12:20:36 UTC 2016


This is an automated email from the git hooks/post-receive script.

henrich pushed a commit to branch debian/sid
in repository ruby-aruba.

commit c040104e20c45943faeaf20a1e39e74006db28ca
Author: Dennis Günnewig <dev at fedux.org>
Date:   Sat Jan 2 00:30:26 2016 +0100

    Make require_relative => require to make ruby 1.8.7 happy
---
 features/api/environment/set_environment_variable.feature | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/features/api/environment/set_environment_variable.feature b/features/api/environment/set_environment_variable.feature
index a09eff0..8fd722a 100644
--- a/features/api/environment/set_environment_variable.feature
+++ b/features/api/environment/set_environment_variable.feature
@@ -355,9 +355,11 @@ Feature: Set environment variable via API-method
     """ruby
     require 'spec_helper'
 
+    $LOAD_PATH <<  File.expand_path('../../lib', __FILE__)
+
     RSpec.describe 'Environment command', :type => :aruba do
       before(:each) do
-        require_relative File.expand_path('../../lib/my_library.rb', __FILE__)
+        require 'my_library'
       end
 
       before(:each) { run('env') }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-aruba.git



More information about the Pkg-ruby-extras-commits mailing list