remove unnecessary code from snippets_spec.rb