Add rubocop spacing rules

We were following these rules in most places; we just didn't define them
anywhere.
This commit is contained in:
Javi Martín
2019-06-22 18:11:23 +02:00
parent c7f64f8493
commit f9ed186909
264 changed files with 652 additions and 577 deletions

View File

@@ -10,7 +10,7 @@ describe ApplicationController do
current_budget = create(:budget, phase: "accepting", created_at: 1.month.ago)
next_budget = create(:budget, phase: "drafting", created_at: 1.week.ago)
budget = subject.instance_eval{ current_budget }
budget = subject.instance_eval { current_budget }
expect(budget).to eq(current_budget)
end

View File

@@ -91,13 +91,13 @@ describe Legislation::AnnotationsController do
draft_version_id: draft_version.id,
legislation_annotation: {
"quote" => "ipsum",
"ranges"=> [{
"ranges" => [{
"start" => "/p[1]",
"startOffset" => 6,
"end" => "/p[1]",
"endOffset" => 11
}],
"text" => "una anotacion"
"text" => "una anotacion"
}
}
end.not_to change { draft_version.annotations.count }

View File

@@ -14,11 +14,11 @@ describe Management::SessionsController do
end
it "redirects to management root path if authorized manager with right credentials" do
manager = {login: "JJB033", user_key: "31415926", date: "20151031135905"}
manager = { login: "JJB033", user_key: "31415926", date: "20151031135905" }
allow_any_instance_of(ManagerAuthenticator).to receive(:auth).and_return(manager)
get :create, params: {
login: "JJB033" ,
login: "JJB033",
clave_usuario: "31415926",
fecha_conexion: "20151031135905"
}
@@ -54,7 +54,7 @@ describe Management::SessionsController do
describe "Sign out" do
it "destroys the session data and redirect" do
session[:manager] = {user_key: "31415926", date: "20151031135905", login: "JJB033"}
session[:manager] = { user_key: "31415926", date: "20151031135905", login: "JJB033" }
session[:document_type] = "1"
session[:document_number] = "12345678Z"

View File

@@ -4,7 +4,7 @@ describe Management::UsersController do
describe "logout" do
it "removes user data from the session" do
session[:manager] = {user_key: "31415926", date: "20151031135905", login: "JJB033"}
session[:manager] = { user_key: "31415926", date: "20151031135905", login: "JJB033" }
session[:document_type] = "1"
session[:document_number] = "12345678Z"