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|
|
Given /^a remote directory named "([^"]+)"$/ do |path|
|
||||||
create_dir path
|
create_dir path
|
||||||
end
|
end
|
||||||
@ -26,12 +32,6 @@ Then /^the remote file "([^"]+)" must match \/([^\/]+)\/$/ do |path, pattern|
|
|||||||
check_file_content path, /#{pattern}/, true
|
check_file_content path, /#{pattern}/, true
|
||||||
end
|
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|
|
Then /^the remote file "([^"]+)" must have (\d+) mode$/ do |path, mode|
|
||||||
expect(stat_mode path).to eq mode
|
expect(stat_mode path).to eq mode
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user