fixing typo on spec
Merge pull request #502 from cordoval/removing-duplicated-if-in-spec

remove duplicated if in spec