Hates_
2009-Sep-30 23:56 UTC
[rspec-users] Grabbing the controller name before a new test case
I currently have: describe Publishers::PagesController I want to be able to grab the path "publishers/pages/ and use that to generate a load of tests automatically. Problem is I can''t figure out how to do it outside of my "it" block. Any help is greatly appreciated. Richard
Matt Wynne
2009-Oct-01 07:56 UTC
[rspec-users] Grabbing the controller name before a new test case
On 1 Oct 2009, at 00:56, Hates_ wrote:> I currently have: > > describe Publishers::PagesController > > I want to be able to grab the path "publishers/pages/ and use that to > generate a load of tests automatically. Problem is I can''t figure out > how to do it outside of my "it" block. > > Any help is greatly appreciated.Can''t remember exactly, but it''s something like self.described_type cheers, Matt http://mattwynne.net +447974 430184
Hates_
2009-Oct-01 09:30 UTC
[rspec-users] Grabbing the controller name before a new test case
On Oct 1, 8:56?am, Matt Wynne <m... at mattwynne.net> wrote:> > Can''t remember exactly, but it''s something like self.described_type >Cheers, that was it exactly!
Zach Dennis
2009-Oct-01 17:45 UTC
[rspec-users] Grabbing the controller name before a new test case
Your name has intrigued me. Do you really hate underscores? :) Zach On Wed, Sep 30, 2009 at 7:56 PM, Hates_ <richard.e.hart at googlemail.com> wrote:> I currently have: > > describe Publishers::PagesController > > I want to be able to grab the path "publishers/pages/ and use that to > generate a load of tests automatically. Problem is I can''t figure out > how to do it outside of my "it" block. > > Any help is greatly appreciated. > > Richard > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- Zach Dennis http://www.continuousthinking.com (personal) http://www.mutuallyhuman.com (hire me) http://ideafoundry.info/behavior-driven-development (first rate BDD training) @zachdennis (twitter)
Stephen Eley
2009-Oct-01 18:27 UTC
[rspec-users] Grabbing the controller name before a new test case
On Thu, Oct 1, 2009 at 1:45 PM, Zach Dennis <zach.dennis at gmail.com> wrote:> Your name has intrigued me. Do you really hate underscores? :)Some people are ReallyPassionateAboutCamelCase. -- Have Fun, Steve Eley (sfeley at gmail.com) ESCAPE POD - The Science Fiction Podcast Magazine http://www.escapepod.org
Hates_
2009-Oct-01 19:33 UTC
[rspec-users] Grabbing the controller name before a new test case
On Oct 1, 7:27?pm, Stephen Eley <sfe... at gmail.com> wrote:> On Thu, Oct 1, 2009 at 1:45 PM, Zach Dennis <zach.den... at gmail.com> wrote: > > Your name has intrigued me. Do you really hate underscores? :) > > Some people are ReallyPassionateAboutCamelCase.Underscores make me livid! :D
David Chelimsky
2009-Oct-01 19:34 UTC
[rspec-users] Grabbing the controller name before a new test case
On Thu, Oct 1, 2009 at 2:33 PM, Hates_ <richard.e.hart at googlemail.com> wrote:> > > On Oct 1, 7:27?pm, Stephen Eley <sfe... at gmail.com> wrote: >> On Thu, Oct 1, 2009 at 1:45 PM, Zach Dennis <zach.den... at gmail.com> wrote: >> > Your name has intrigued me. Do you really hate underscores? :) >> >> Some people are ReallyPassionateAboutCamelCase. > > Underscores make me livid! :DHow.do.you.feel.about.dots?