@attr.merge?

Hi,

What does the @attr.merge in something like:

it “should require a password” do
User.new(@attr.merge(:password => “”, :password_confirmation =>
“”)).
should_not be_valid
end

do?

On Mar 7, 4:31pm, Gaba L. [email protected] wrote:

Hi,

What does the @attr.merge in something like:

it merges the hash @attr with the hash passed as its argument.

Fred