Fix coding standards
This commit is contained in:
parent
433f830c54
commit
b6cbd1b6f2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user