[rspec-users] Dealing with nested/namespaced classes w/ describe

Scott Taylor mailing_lists at railsnewbie.com
Mon Jul 23 22:03:21 EDT 2007

Hi all,

Just wondering about this:  I've been dealing with classes/modules  
nested in several layers of namespaces.  Here would be an example of  
a describe block:

describe ClassOne::ClassTwo::ClassThree, "description here" do

What would be the easiest way to write something a little more terse,  

describe ClassThree, "description here" do

If this has come up before, just tell me to google.

Thanks for your time,

Scott Taylor

More information about the rspec-users mailing list