[rspec-users] Rails 3, Rspec 2 - flash notice

Andrei Erdoss erdoss at gmail.com
Tue Apr 27 22:19:33 EDT 2010


I am using this line in my Gemfile:   gem "rspec-rails", :git => "git://
github.com/rspec/rspec-rails.git"

which installs the rspec-rails-2.0.0.beta.7

I tried beta.8 but I get an error: Rspec is not missing constant Matchers!
(ArgumentError)

On Tue, Apr 27, 2010 at 5:59 PM, David Chelimsky <dchelimsky at gmail.com>wrote:

> On Apr 27, 2010, at 4:48 PM, Andrei Erdoss wrote:
>
> > Hello,
> >
> > I also tried testing for the flash notice being set, but it's not
> working.
> >
> > it "sets a flash[:notice] message" do
> >   post :create
> >   flash[:notice].should == "The message was saved successfully."
> > end
> >
> > this is the line in the controller that's setting the notice.
> >
> > redirect_to messages_path, :notice =>  "The message was saved
> successfully."
> >
> > Anybody have some insight on this?
>
> Are you using rspec-rails-2.0.0.beta.8?
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>



-- 
Andrei Erdoss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100427/ac486b2a/attachment.html>


More information about the rspec-users mailing list