Devise

probao sam tako sto sam ubacio u sign in:
 @user = user
@user.save
i onda ubacim u odredjene features-e: @user.save ili @user
ali nece isto vazi i za @gull.save on hoce da radi samo u edit_steps

 user = User.create!(:email => "example@example.com",
:password => "passwordtest",
:password_confirmation => "passwordtest")
@user = user
@user.save
end


On Wed, Jul 16, 2014 at 6:58 PM, Darko Fabijan <notifications@github.com>
wrote:

> In features/step_definitions/edit_gull_steps.rb:
>
> >
> > +	@gull.save
> > +end
> > +And(/^I'm logged in$/) do
> > +	User.create!(:email => "example@example.com",
> > +				 :password => "passwordtest",
> > +				 :password_confirmation => "passwordtest")
> > +	visit "/users/sign_in"
> > +	fill_in "Email", :with => "example@example.com"
> > +	fill_in "Password", :with => "passwordtest"
> > +	click_button("Sign in")
> > +end
>
> Same logic applies for this 'logged in' step.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/draganf/gull-tracking/pull/4/files#r15012352>.
>