mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-04-07 06:00:58 +02:00
14 lines
No EOL
344 B
Ruby
14 lines
No EOL
344 B
Ruby
require 'rails_helper'
|
|
|
|
describe User::SessionsController do
|
|
before do
|
|
@request.env["devise.mapping"] = Devise.mappings[:user]
|
|
end
|
|
|
|
describe "#two_factor_entry" do
|
|
subject { get :two_factor_entry }
|
|
it "redirects back to the home page if no sign in target is set" do
|
|
expect(subject).to redirect_to :root
|
|
end
|
|
end
|
|
end |