Fix teaspoon spec.

- We added a `current_user.two_factor_via_otp?` check to the view. When
  rendering the view via the teaspoon fixture, `current_user` is `nil`.
This commit is contained in:
Timothy Andrew 2016-06-14 10:47:00 +05:30
parent 298eb449f3
commit d8a531687c
1 changed files with 2 additions and 1 deletions

View File

@ -1 +1,2 @@
= render partial: "u2f/register", locals: { create_u2f_profile_two_factor_auth_path: '/profile/two_factor_auth/create_u2f' }
- user = FactoryGirl.build(:user, :two_factor_via_otp)
= render partial: "u2f/register", locals: { create_u2f_profile_two_factor_auth_path: '/profile/two_factor_auth/create_u2f', current_user: user }