From b6cbd1b6f24151fadc435ef90d661a272992976f Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Sat, 4 Apr 2015 05:24:53 +0000 Subject: [PATCH] Fix coding standards --- features/steps/remote_steps.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/features/steps/remote_steps.rb b/features/steps/remote_steps.rb index b260312..68518de 100644 --- a/features/steps/remote_steps.rb +++ b/features/steps/remote_steps.rb @@ -1,3 +1,9 @@ +def stat_mode(path) + in_current_dir do + ('%o' % [File::Stat.new(path).mode])[-4, 4] + end +end + Given /^a remote directory named "([^"]+)"$/ do |path| create_dir path end @@ -26,12 +32,6 @@ Then /^the remote file "([^"]+)" must match \/([^\/]+)\/$/ do |path, pattern| check_file_content path, /#{pattern}/, true end -def stat_mode(path) - in_current_dir do - ('%o' % [File::Stat.new(path).mode])[-4, 4] - end -end - Then /^the remote file "([^"]+)" must have (\d+) mode$/ do |path, mode| expect(stat_mode path).to eq mode end