Use system instead of ``
Refactor specs with expect method