Skip to content

Instantly share code, notes, and snippets.

@graemenelson
Created August 24, 2010 15:21
Show Gist options
  • Select an option

  • Save graemenelson/547720 to your computer and use it in GitHub Desktop.

Select an option

Save graemenelson/547720 to your computer and use it in GitHub Desktop.
require 'test_helper'
class Devise::RegistrationsControllerTest < ActionController::TestCase
context "edit without authenticate account" do
setup do
sign_out :account
get :edit
end
should redirect_to("new account session path") { new_account_session_path }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment