[rspec-users] Cookies - how to set in controller specs?

2008-07-01 Thread Christopher Bailey
I've been searching Google, the mailing list, etc, etc. and can't for the life of me get a cookie to be set in a controller spec. From everything I've read on the web, it appears all I need to do is the typical: cookies[:name] = value or cookies[:name] = { :value => something, :expires => 1

Re: [rspec-users] matchers not working...?

2008-07-01 Thread David Chelimsky
On Jul 1, 2008, at 3:48 PM, Ivor Paul wrote: I am getting errors that seem to be the matchers not working - example: vendor/rails/activerecord/lib/../../activesupport/lib/active_support/ dependencies.rb:478:in `const_missing': uninitialized constant Spec::Rails::Example::ModelExampleGroup::

[rspec-users] matchers not working...?

2008-07-01 Thread Ivor Paul
Hi. I am pretty new to rspec so forgive my ignorance. I am getting errors that seem to be the matchers not working - example: vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:478:in `const_missing': uninitialized constant Spec::Rails::Example::ModelExampleGrou

Re: [rspec-users] jumping authentication spec

2008-07-01 Thread Courtenay
On Tue, Jul 1, 2008 at 11:08 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Jul 1, 2008, at 12:59 PM, marcio <[EMAIL PROTECTED]> wrote: > >> hi everyone! i ve been working in my new rspec scaffold generator. >> I have made all the neccesary specs over all controllers and models. >> I am worki

Re: [rspec-users] jumping authentication spec

2008-07-01 Thread David Chelimsky
On Jul 1, 2008, at 12:59 PM, marcio <[EMAIL PROTECTED]> wrote: hi everyone! i ve been working in my new rspec scaffold generator. I have made all the neccesary specs over all controllers and models. I am working with restful_authenticated plugin. I have already coded the spects of it too. But n

[rspec-users] jumping authentication spec

2008-07-01 Thread marcio
hi everyone! i ve been working in my new rspec scaffold generator. I have made all the neccesary specs over all controllers and models. I am working with restful_authenticated plugin. I have already coded the spects of it too. But now im trying to test my controllers and i dont know the way to "ju

Re: [rspec-users] Odd Date-based spec failing

2008-07-01 Thread Matt Darby
On Jul 1, 2008, at 8:23 AM, Tom Stuart wrote: $ ./script/console >> Date.today.minus_with_duration(5.days) => Thu, 26 Jun 2008 >> Date.today.minus_without_duration(5.days.to_i) => Sun, 17 Sep 0825 Is this a load-order problem? Perhaps ActiveSupport::CoreExtensions::Date::Calculations isn't kic

Re: [rspec-users] Odd Date-based spec failing

2008-07-01 Thread Tom Stuart
On 1 Jul 2008, at 13:06, Matt Darby wrote: When run via 'rake spec:models' Date.today = 2008-07-01 self.start_date = 0825-09-17 self.end_date = 2008-07-02 Pretty obvious what the bug is suddenly, but would cause this? Not a solution, but a clue: $ ./script/console >> Date.today.minus_with_dur

Re: [rspec-users] Odd Date-based spec failing

2008-07-01 Thread Matt Darby
On Jul 1, 2008, at 2:10 AM, Pat Maddox wrote: What do you see when you puts the values of end_date, start_date, and Date.today inside of #percentage_complete? When run via TextMate/Rspec Bundle: Date.today = 2008-07-01 self.start_date = 2008-06-26 self.end_date = 2008-07-02 When run via 'rak