Hello,
When trying to use logger into any RSpec I get:
logger anyboundefined local variable or method `logger'' for
#<#<Class:0x278bee0>:0x253cdec>
Not sure if this is the spected behaviour (haven''t checked under
the
hood) It was just annoying not having a logger instance available as in
Rails out of the tests.
--
An?bal Rojas
http://www.rubycorner.com
http://www.hasmanydevelopers.com
http://www.to2blogs.com
http://anibal.rojas.com.ve
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/rspec-users/attachments/20070521/8d88fe12/attachment.html
On 5/21/07, An?bal Rojas <anibal at rojas.com.ve> wrote:> Hello, > > When trying to use logger into any RSpec I get: > > logger anyboundefined local variable or method `logger'' for > #<#<Class:0x278bee0>:0x253cdec> > > Not sure if this is the spected behaviour (haven''t checked under the > hood) It was just annoying not having a logger instance available as in > Rails out of the tests.If you''re looking to get this addressed, please submit an RFE or, even better, a patch. http://rspec.rubyforge.org/community/contribute.html Cheers, David> > -- > An?bal Rojas > http://www.rubycorner.com > http://www.hasmanydevelopers.com > http://www.to2blogs.com > http://anibal.rojas.com.ve > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
David,
Ok, I tough it was my fault. Let me digg a little to see if I can
find the problem.
--
An?bal
On 5/28/07, David Chelimsky <dchelimsky at gmail.com>
wrote:> On 5/21/07, An?bal Rojas <anibal at rojas.com.ve> wrote:
> > Hello,
> >
> > When trying to use logger into any RSpec I get:
> >
> > logger anyboundefined local variable or method `logger'' for
> > #<#<Class:0x278bee0>:0x253cdec>
> >
> > Not sure if this is the spected behaviour (haven''t
checked under the
> > hood) It was just annoying not having a logger instance available as
in
> > Rails out of the tests.
>
> If you''re looking to get this addressed, please submit an RFE or,
even
> better, a patch.
>
> http://rspec.rubyforge.org/community/contribute.html
>
> Cheers,
> David
>
> >
> > --
> > An?bal Rojas
> > http://www.rubycorner.com
> > http://www.hasmanydevelopers.com
> > http://www.to2blogs.com
> > http://anibal.rojas.com.ve
> >
> > _______________________________________________
> > rspec-users mailing list
> > rspec-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/rspec-users
> >
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
Seemingly Similar Threads
- How to spec routes for a resource nested in multiples resources?
- annotate_models plugin to annotate RSpec specs and fixture
- Trouble defining a stub method for a controller
- How to get database.yml configuration to use it in a rake taks
- Specs don''t find modules when using the secure_actions or ssl_requirement plugin