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
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::
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
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
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
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
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
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
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