Apply NotToNot rubocop rule
This commit is contained in:
@@ -101,7 +101,7 @@ describe Legislation::AnnotationsController do
|
||||
"text" => "una anotacion"
|
||||
}
|
||||
}
|
||||
end.to_not change { draft_version.annotations.count }
|
||||
end.not_to change { draft_version.annotations.count }
|
||||
end
|
||||
|
||||
it "creates an annotation by parsing parameters in JSON" do
|
||||
@@ -157,7 +157,7 @@ describe Legislation::AnnotationsController do
|
||||
"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.comments.last.body).to eq("una anotacion")
|
||||
|
||||
Reference in New Issue
Block a user