summaryrefslogtreecommitdiff
path: root/spec/functions/validate_absolute_path_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/functions/validate_absolute_path_spec.rb')
-rwxr-xr-xspec/functions/validate_absolute_path_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/functions/validate_absolute_path_spec.rb b/spec/functions/validate_absolute_path_spec.rb
index 75df6bc..bdb55f0 100755
--- a/spec/functions/validate_absolute_path_spec.rb
+++ b/spec/functions/validate_absolute_path_spec.rb
@@ -7,9 +7,8 @@ describe 'validate_absolute_path' do
# Checking for deprecation warning
it 'should display a single deprecation' do
- # called twice because validate_absolute_path calls is_absolute_path
ENV['STDLIB_LOG_DEPRECATIONS'] = "true"
- scope.expects(:warning).with(includes('This method is deprecated')).twice
+ scope.expects(:warning).with(includes('This method is deprecated'))
is_expected.to run.with_params('c:/')
end