Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 74e91e1a9c
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (16 sloc) 0.511 kb
require "spec_helper"
module RedisCacheable
Foobar = Class.new
FooBar = Class.new
RedisCacheable::FooClass = Class.new
describe Util do
describe ".underscore" do
it "should make a pretty underscore replacement for ConstantCase" do
Util.underscore("FooBar").should == "foo_bar"
end
it "should make a slash-based representation of a namespaced class" do
Util.underscore("RedisCacheable::FooClass").should == "redis_cacheable/foo_class"
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.