Sha256: 683fa569ea09cfe19d55d7dcf3808cc91b7c185dcaa73f89b0d3789e9b2ad500

Contents?: true

Size: 805 Bytes

Versions: 21

Compression:

Stored size: 805 Bytes

Contents

Given "I am a real person wanting to sign up for an account" do
  # no-op.. for documentation purposes only!
end

When /^I submit my registration information$/ do
  fill_in "Name", :with => valid_user_attributes[:name]
  fill_in "Email", :with => valid_user_attributes[:email]
  click_button
end

Then /^I should receive an email with a link to a confirmation page$/ do
  unread_emails_for(valid_user_attributes[:email]).size.should == 1 
  
  # this call will store the email and you can access it with current_email
  open_last_email_for(valid_user_attributes[:email])
  current_email.should have_subject(/Account confirmation/)
  current_email.should have_body_text(valid_user_attributes[:name])

  click_email_link_matching /confirm/
  response.should include_text("Confirm your new account")
  
end

Version data entries

21 entries across 21 versions & 8 rubygems

Version Path
basiszwo-email_spec-0.1.3 examples/rails_root/features/step_definitions/user_steps.rb
bmabey-email_spec-0.0.10 examples/rails_root/features/step_definitions/user_steps.rb
bmabey-email_spec-0.0.9 examples/rails_root/features/step_definitions/user_steps.rb
bmabey-email_spec-0.1.0 examples/rails_root/features/step_definitions/user_steps.rb
bmabey-email_spec-0.1.1 examples/rails_root/features/step_definitions/user_steps.rb
bmabey-email_spec-0.1.2 examples/rails_root/features/step_definitions/user_steps.rb
bmabey-email_spec-0.1.3 examples/rails_root/features/step_definitions/user_steps.rb
bmabey-email_spec-0.1.4 examples/rails_root/features/step_definitions/user_steps.rb
bmabey-email_spec-0.2.0 examples/rails_root/features/step_definitions/user_steps.rb
bmabey-email_spec-0.2.1 examples/rails_root/features/step_definitions/user_steps.rb
bmabey-email_spec-0.3.0 examples/rails_root/features/step_definitions/user_steps.rb
craigw-email_spec-0.1.4 examples/rails_root/features/step_definitions/user_steps.rb
hectoregm-email_spec-0.1.2 examples/rails_root/features/step_definitions/user_steps.rb
hectoregm-email_spec-0.1.3 examples/rails_root/features/step_definitions/user_steps.rb
leondu-email_spec-0.1.4 examples/rails_root/features/step_definitions/user_steps.rb
rainchen-email_spec-0.1.4 examples/rails_root/features/step_definitions/user_steps.rb
tpitale-email_spec-0.2.1 examples/rails_root/features/step_definitions/user_steps.rb
tpitale-email_spec-0.2.2 examples/rails_root/features/step_definitions/user_steps.rb
email_spec-0.3.0 examples/rails_root/features/step_definitions/user_steps.rb
email_spec-0.2.1 examples/rails_root/features/step_definitions/user_steps.rb