Updated to latest rspec
[gitorious:georgyos-clone.git] / vendor / plugins / rspec-rails / lib / spec / rails / extensions / object.rb
1 class Object # :nodoc:
2   def self.path2class(klassname)
3     klassname.split('::').inject(Object) { |k,n| k.const_get n }
4   end
5 end