void () { SnippetsRegistry snippetsRegistry = loadSnippets(CHEF); Collection<TextMateSnippet> snippets = snippetsRegistry.findSnippet("log", scopeFromString("source.ruby.chef.something")); assertEquals(1, snippets.size()); TextMateSnippet snippet = snippets.iterator().next(); assertNotNull(snippet); assertEquals("log", snippet.getKey()); assertEquals("Chef::Log.${1:debug} \"${2:something to log}\"", snippet.getContent()); assertEquals("chef_log", snippet.getName()); assertEquals("18C24F07-1726-490B-84BA-4BF83263C6EE", snippet.getSettingsId()); }