Fix errors in "edit_spec.rb" and "editor_spec.rb"

Basically, the condition was a bit wrong. Let's hope this commit fixes
it.