Sha256: be37afb5dfada6d65a1420a3596c82ba19d045e31e46d75e1001192b26183e08
Contents?: true
Size: 399 Bytes
Versions: 3
Compression:
Stored size: 399 Bytes
Contents
require 'spec_helper' describe String, 'camelize' do it "should camelize a string" do 'my_string'.camelize.should == 'MyString' end end describe String, 'snake_case' do it "should snake_case a string" do 'MyString'.snake_case.should == 'my_string' end it "should snake_case a string using a custom separator" do 'My::String'.snake_case('::').should == 'my::string' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
couch_potato-0.2.30 | spec/unit/string_spec.rb |
couch_potato-0.2.29 | spec/unit/string_spec.rb |
couch_potato-0.2.28 | spec/unit/string_spec.rb |