Top Level Namespace

Defined Under Namespace

Modules: DefaultConfigLoader, GeneratorHelpers, HotGlue, HotGlueHelper, LayoutStrategy Classes: AssociationField, AttachmentField, BooleanField, DateField, DateTimeField, EnumField, Field, FieldFactory, FloatField, IntegerField, RelatedSetField, StringField, TextField, TimeField, UUIDField

Instance Method Summary collapse

Instance Method Details

#login_as(user) ⇒ Object



1
2
3
4
5
6
7
8
# File 'lib/generators/hot_glue/templates/capybara_login.rb', line 1

def (user)
  visit '/users/sign_in'
  within("#new_user") do
    fill_in 'Email', with: user.email
    fill_in 'Password', with: 'password'
  end
  click_button 'Log in'
end