Skip to content
Browse files

two more spec example for #underscore

  • Loading branch information...
1 parent 9ee3e15 commit d6a75059d9993f710d13766adc2b3baaa9bd6c69 @michaelklishin michaelklishin committed Aug 9, 2008
Showing with 8 additions and 0 deletions.
  1. +8 −0 spec/inflection_spec.rb
View
8 spec/inflection_spec.rb
@@ -60,6 +60,14 @@
it 'underscores Merb as merb' do
Extlib::Inflection.underscore('Merb').should == 'merb'
end
+
+ it 'underscores DataMapper::Resource as data_mapper/resource' do
+ Extlib::Inflection.underscore('DataMapper::Resource').should == 'data_mapper/resource'
+ end
+
+ it 'underscores Merb::BootLoader::Rackup as merb/boot_loader/rackup' do
+ Extlib::Inflection.underscore('Merb::BootLoader::Rackup').should == 'merb/boot_loader/rackup'
+ end
end
describe "#humanize" do

0 comments on commit d6a7505

Please sign in to comment.
Something went wrong with that request. Please try again.