Forum: RSpec updated to latest gems, rspec not catching flash.now

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2837408ba0375c40b235f0a5a5107d37?d=identicon&s=25 Doug Livesey (biot023)
on 2009-04-08 20:53
(Received via mailing list)
Hi, after an update to all the latest gems, I have a controller spec
failing
that wasn't previously:
   flash[:alert].should eql( "Blah blah." )**

The flash is being set by "flash.now[:alert] = '...'" in this instance.
Can anyone suggest how I can make this work again?
Cheers,
   Doug.
F86901feca747abbb5c6c020362ef2e7?d=identicon&s=25 Zach Dennis (zdennis)
on 2009-04-08 23:34
(Received via mailing list)
On Wed, Apr 8, 2009 at 2:08 PM, doug livesey <biot023@gmail.com> wrote:
> Hi, after an update to all the latest gems, I have a controller spec failing
> that wasn't previously:
>    flash[:alert].should eql( "Blah blah." )
>
> The flash is being set by "flash.now[:alert] = '...'" in this instance.
> Can anyone suggest how I can make this work again?

I just submitted a patch to ticket #11834 to resolve this issue in
rspec-rails:

https://rspec.lighthouseapp.com/projects/5645-rspe...

In the mean time you can manually patch your local rspec-rails (if you
unpack rspec and rspec-rails into vendor/gems or vendor/plugins this
should work fine). Or you can do Xavier suggests on that ticket and
add a few lines to your spec_helper, until rspec-rails is updated.

HTH,


> Cheers,
>    Doug.
>
> _______________________________________________
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>



--
Zach Dennis
http://www.continuousthinking.com
http://www.mutuallyhuman.com
2837408ba0375c40b235f0a5a5107d37?d=identicon&s=25 Doug Livesey (biot023)
on 2009-04-09 19:32
(Received via mailing list)
Didn't spot this when you replied earlier -- cheers for that!
   Doug.

2009/4/8 Zach Dennis <zach.dennis@gmail.com>
This topic is locked and can not be replied to.