[DRE-commits] [librarian-puppet] 131/153: Fix test errors with newer aruba
Stig Sandbeck Mathisen
ssm at debian.org
Wed Jun 1 20:30:57 UTC 2016
This is an automated email from the git hooks/post-receive script.
ssm pushed a commit to branch master
in repository librarian-puppet.
commit 1b06c6ad1d05a8faaddc803855b475c83967c7bf
Author: Carlos Sanchez <carlos at apache.org>
Date: Sat Sep 19 19:44:30 2015 +0200
Fix test errors with newer aruba
---
features/step_definitions/convergence_steps.rb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/features/step_definitions/convergence_steps.rb b/features/step_definitions/convergence_steps.rb
index a05d71b..55c36d4 100644
--- a/features/step_definitions/convergence_steps.rb
+++ b/features/step_definitions/convergence_steps.rb
@@ -1,5 +1,5 @@
Then /^the file "([^"]*)" should have an inode and ctime$/ do |file|
- prep_for_fs_check do
+ cd('.') do
stat = File.stat(File.expand_path(file))
@before_inode = { 'ino' => stat.ino, 'ctime' => stat.ctime }
expect(@before_inode['ino']).not_to eq nil
@@ -8,7 +8,7 @@ Then /^the file "([^"]*)" should have an inode and ctime$/ do |file|
end
Then /^the file "([^"]*)" should have the same inode and ctime as before$/ do |file|
- prep_for_fs_check do
+ cd('.') do
stat = File.stat(File.expand_path(file))
expect(stat.ino).to eq @before_inode['ino']
expect(stat.ctime).to eq @before_inode['ctime']
@@ -16,7 +16,7 @@ Then /^the file "([^"]*)" should have the same inode and ctime as before$/ do |f
end
Then /^the file "([^"]*)" should not have the same inode or ctime as before$/ do |file|
- prep_for_fs_check do
+ cd('.') do
stat = File.stat(File.expand_path(file))
begin
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/librarian-puppet.git
More information about the Pkg-ruby-extras-commits
mailing list