Apply IndentationWidth rubocop rule

This commit is contained in:
Javi Martín
2019-06-18 02:29:00 +02:00
parent b5b07bccd3
commit e252d82cdb
21 changed files with 119 additions and 119 deletions

View File

@@ -283,6 +283,6 @@ end
def set_arguments(arguments, mappable, mappable_path_arguments)
mappable_path_arguments&.each do |argument_name, path_to_value|
arguments.merge!("#{argument_name}": mappable.send(path_to_value))
arguments.merge!("#{argument_name}": mappable.send(path_to_value))
end
end

View File

@@ -16,7 +16,7 @@ shared_examples "nested imageable" do |imageable_factory_name, path,
Setting["feature.allow_images"] = true
imageable_path_arguments&.each do |argument_name, path_to_value|
arguments.merge!("#{argument_name}": imageable.send(path_to_value))
arguments.merge!("#{argument_name}": imageable.send(path_to_value))
end
imageable.update(author: user) if imageable.respond_to?(:author)
@@ -176,7 +176,7 @@ shared_examples "nested imageable" do |imageable_factory_name, path,
scenario "Should show successful notice when resource filled correctly without any nested images", :js do
if has_many_images
skip "no need to test, there are no attributes for the parent resource"
skip "no need to test, there are no attributes for the parent resource"
else
login_as user
visit send(path, arguments)

View File

@@ -9,43 +9,43 @@ shared_examples "map validations" do
end
after do
Setting["feature.map"] = nil
Setting["feature.map"] = nil
end
it "is valid with a map location" do
mappable.map_location = build(:map_location)
mappable.skip_map = nil
mappable.map_location = build(:map_location)
mappable.skip_map = nil
expect(mappable).to be_valid
expect(mappable).to be_valid
end
it "is valid accepting that the mappable has no map" do
mappable.skip_map = "1"
mappable.map_location = nil
mappable.skip_map = "1"
mappable.map_location = nil
expect(mappable).to be_valid
expect(mappable).to be_valid
end
it "is valid when the feature map is deactivated" do
Setting["feature.map"] = nil
Setting["feature.map"] = nil
mappable.map_location = nil
mappable.skip_map = nil
mappable.map_location = nil
mappable.skip_map = nil
expect(mappable).to be_valid
expect(mappable).to be_valid
end
it "is not valid without a map location" do
mappable.map_location = nil
mappable.skip_map = nil
mappable.map_location = nil
mappable.skip_map = nil
expect(mappable).not_to be_valid
expect(mappable).not_to be_valid
end
it "is not valid without accepting that the mappable has no map" do
mappable.skip_map = nil
mappable.skip_map = nil
expect(mappable).not_to be_valid
expect(mappable).not_to be_valid
end
end