back soft

مطالب مرتبط با «rails 4 devise token authentication» در back soft | نویسنده: استخدام کار

Rails 4, devise sign in specs failing?

Vote count: 0 The sign in spec that was generated with the rails 4 template is failing, and it seems like what is being retued in the test environment should make the spec pass. spec: Sign in user caot sign in if not registered Is looking for "Invalid Email or Password" on the page. When I try to login in with invalid credentials this message is definitely displayed in the flash messages. Also, you can see that the page content retued by capybara in the test env has the text 'Invalid Email or Password'. See below: 1) Sign in user caot sign in if not registered Failure/Error: expect(page).to have_content I18n.t 'devise.failure.not_found_in_database', authentication_keys: 'email' expected to f...

ادامه مطلب

برچسب‌های مرتبط

rails 4 devise | rails 4 devise tutorial | rails 4 devise token authentication | rails 4 devise sign out | rails 4 devise strong parameters | rails 4 devise unpermitted parameters | rails 4 devise subdomain | rails 4 devise omniauth | rails 4 devise completed 401 unauthorized | rails 4 devise api authentication