rubocop: fix over tabbed variable assignment

This commit is contained in:
Anatoliy Yastreb 2016-05-27 13:59:18 +03:00
parent d5d2fd8674
commit 22982ef79e
1 changed files with 6 additions and 5 deletions

View File

@ -93,11 +93,12 @@ end
#
Given(/^I have a configuration file with "(.*)" set to "(.*)"$/) do |key, value|
config = if source_dir.join("_config.yml").exist?
SafeYAML.load_file(source_dir.join("_config.yml"))
else
{}
end
config = \
if source_dir.join("_config.yml").exist?
SafeYAML.load_file(source_dir.join("_config.yml"))
else
{}
end
config[key] = YAML.load(value)
File.write("_config.yml", YAML.dump(config))
end