キュウリで確認トークンを使用するにはどうすればよいですか? 電子メールをチェックせずに登録をテストするには、これが必要です。
私のコード:
@b.text_field(:name => 'profile[prename]').set 'Kurt'
@b.text_field(:name => 'profile[surname]').set 'Russell'
@b.text_field(:id => 'profile_email').set 'user@trash-mail.com'
@b.text_field(:id => 'profile_password').set 'password'
@b.text_field(:name => 'profile[password_confirmation]').set 'password'
@b.button(:id => 'profile_submit').click
@ctoken = Profile.last.confirmation_token
@b.goto("http://localhost:3000/profiles/confirmation?confirmation_token=#{@ctoken}")
また:
@b.goto("http://localhost:3000/profiles/confirmation?confirmation_token=#{Profile.last.confirmation_token}")
nil:NilClass (NoMethodError) の未定義メソッド `confirmation_token'