Fix coding standards

This commit is contained in:
Thibault Jouan 2015-04-04 05:24:53 +00:00
parent 433f830c54
commit b6cbd1b6f2

View File

@ -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