Apply NotToNot rubocop rule

This commit is contained in:
Javi Martín
2019-06-18 02:05:00 +02:00
parent 71d9ddd849
commit 17c36c6c6c

View File

@@ -101,7 +101,7 @@ describe Legislation::AnnotationsController do
"text" => "una anotacion" "text" => "una anotacion"
} }
} }
end.to_not change { draft_version.annotations.count } end.not_to change { draft_version.annotations.count }
end end
it "creates an annotation by parsing parameters in JSON" do it "creates an annotation by parsing parameters in JSON" do
@@ -157,7 +157,7 @@ describe Legislation::AnnotationsController do
"text" => "una anotacion" "text" => "una anotacion"
} }
} }
end.to_not change { draft_version.annotations.count } end.not_to change { draft_version.annotations.count }
expect(annotation.reload.comments_count).to eq(2) expect(annotation.reload.comments_count).to eq(2)
expect(annotation.comments.last.body).to eq("una anotacion") expect(annotation.comments.last.body).to eq("una anotacion")