Files
openfoodnetwork/spec/controllers/registration_controller_spec.rb

9 lines
244 B
Ruby

require 'spec_helper'
describe RegistrationController do
it "redirects to authentication page when user not logged in" do
get :index
response.should redirect_to registration_auth_path(anchor: "login?after_login=/register")
end
end