Sha256: 7fb4a21df8f9f8c998d36a2fe038a06d15da78bdf72db96fcc86b5a44062e4d6

Contents?: true

Size: 505 Bytes

Versions: 3

Compression:

Stored size: 505 Bytes

Contents



def fill_in_email_password_click(email, password, password2, button_text)
  fill_in('Email',    with: email)
  fill_in('Password', with: password) if password
  fill_in('Password confirmation', with: password2) if password2
  click_button button_text
end


def sign_in(email, password)
  User.create! email: email, password: password
  
  visit new_user_session_path
  fill_in_email_password_click(email, password, nil, 'Sign in')

  assert page.has_content?('Signed in successfully.'), page.body
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bread-0.0.11 test/dummy/test/support/others.rb
bread-0.0.10 test/dummy/test/support/others.rb
bread-0.0.9 test/dummy/test/support/others.rb