refactored cuke_sniffer_spec to delete unnecessary lines of code