You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deleting ENV variables is failing in Windows with the error: wrong number of arguments (1 for 2) (ArgumentError)
No backtrace is given!
Expected Behavior
Variable should be removed from ENV.
Current Behavior
see Steps to Reproduce (for bugs)
Possible Solution
Followed the error to:
{ArgumentError} wrong number of arguments (1 for 2)
"C:/Ruby22/lib/ruby/gems/2.2.0/gems/aruba-0.14.0/lib/aruba/platforms/windows_environment_variables.rb:84:in delete'" "C:/Ruby22/lib/ruby/gems/2.2.0/gems/aruba-0.14.0/lib/aruba/api/deprecated.rb:406:inblock in restore_env'"
"C:/Ruby22/lib/ruby/gems/2.2.0/gems/aruba-0.14.0/lib/aruba/api/deprecated.rb:401:in each'" "C:/Ruby22/lib/ruby/gems/2.2.0/gems/aruba-0.14.0/lib/aruba/api/deprecated.rb:401:inrestore_env'"
"C:/Ruby22/lib/ruby/gems/2.2.0/gems/aruba-0.14.0/lib/aruba/cucumber/hooks.rb:19:in `After'"
and found that the delete method, which is inherited from UnixEnvironmentVariables, has an extra argument that its super.
Steps to Reproduce (for bugs)
irb(main):001:0> require 'aruba'
=> true
irb(main):003:0> env = Aruba::Platforms::WindowsEnvironmentVariables.new
=> ...
irb(main):004:0> env['foo']='bar'
=> "bar"
irb(main):005:0> env['foo']
=> "bar"
irb(main):006:0> env.delete 'foo'
ArgumentError: wrong number of arguments (1 for 2)
from C:/Ruby22/lib/ruby/gems/2.2.0/gems/aruba-0.14.0/lib/aruba/platforms/windows_environment_variables.rb:84:in `delete'
from (irb):6
from C:/Ruby22/bin/irb:11:in `<main>'
Context
Scenario fails "silently" after steps in an Aruba hook (After) afecting test results.
Environment
Aruba 0.14.0 @ Ruby 2.2.0
Windows 8.1
The text was updated successfully, but these errors were encountered:
Summary
Deleting ENV variables is failing in Windows with the error:
wrong number of arguments (1 for 2) (ArgumentError)
No backtrace is given!
Expected Behavior
Variable should be removed from ENV.
Current Behavior
see Steps to Reproduce (for bugs)
Possible Solution
Followed the error to:
and found that the delete method, which is inherited from UnixEnvironmentVariables, has an extra argument that its super.
Steps to Reproduce (for bugs)
Context
Scenario fails "silently" after steps in an Aruba hook (After) afecting test results.
Environment
The text was updated successfully, but these errors were encountered: