On Mar 7, 4:31 pm, Gaba Luschi
<li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:> Hi,
>
> What does the @attr.merge in something like:
>
it merges the hash @attr with the hash passed as its argument.
Fred> it "should require a password" do
> User.new(@attr.merge(:password => "",
:password_confirmation =>
> "")).
> should_not be_valid
> end
>
> do?
>
> --
> Posted viahttp://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.