Skip to content

Instantly share code, notes, and snippets.

@ashaw
Created April 1, 2011 17:16
Show Gist options
  • Save ashaw/898501 to your computer and use it in GitHub Desktop.
Save ashaw/898501 to your computer and use it in GitHub Desktop.
%w[css html].each do |lang|
it "should compress #{lang}" do
k = Kompress.const_get("#{lang.upcase}").new(Kernel.const_get("BIG_#{lang.upcase}"))
k.send(lang).should eql Kernel.const_get("SMALL_#{lang.upcase}")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment