Apply NotToNot rubocop rule
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user