Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

two more spec example for #camelize, better title for previous spec e…

…xample
  • Loading branch information...
commit 9ee3e1534cdcb1cb3d13f74d60fc9ab11b2a6412 1 parent 4acf4fb
@michaelklishin michaelklishin authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 spec/inflection_spec.rb
View
10 spec/inflection_spec.rb
@@ -39,9 +39,17 @@
Extlib::Inflection.camelize('data_mapper').should == 'DataMapper'
end
- it "makes constant string: camelizes data_mapper/resource as DataMapper::Resource" do
+ it "camelizes merb as Merb" do
+ Extlib::Inflection.camelize('merb').should == 'Merb'
+ end
+
+ it "camelizes data_mapper/resource as DataMapper::Resource" do
Extlib::Inflection.camelize('data_mapper/resource').should == 'DataMapper::Resource'
end
+
+ it "camelizes data_mapper/associations/one_to_many as DataMapper::Associations::OneToMany" do
+ Extlib::Inflection.camelize('data_mapper/associations/one_to_many').should == 'DataMapper::Associations::OneToMany'
+ end
end
describe "#underscore" do
Please sign in to comment.
Something went wrong with that request. Please try again.