class Object

Public Instance Methods

they_can_sign_up_to_the_acme_newsletter() click to toggle source
# File lib/bdd_rails/templates/example/spec/features/newsletter_spec.rb, line 13
def they_can_sign_up_to_the_acme_newsletter
  expect(page).to have_content 'Thanks for signing up'
  expect(ActionMailer::Base.deliveries.count).to be > 0
end
when_a_user_wishes_to_hear_more_about_acme() click to toggle source
# File lib/bdd_rails/templates/example/spec/features/newsletter_spec.rb, line 7
def when_a_user_wishes_to_hear_more_about_acme
  visit new_newsletter_subscription_path
  fill_in :newsletter_subscription_email, with: FFaker::Internet.email
  click_button 'Sign up'
end