Skip to content

Instantly share code, notes, and snippets.

@huttneab
Created February 24, 2014 22:30
Show Gist options
  • Save huttneab/9198650 to your computer and use it in GitHub Desktop.
Save huttneab/9198650 to your computer and use it in GitHub Desktop.
require 'test_helper'
class Api::V1::RegistrationControllerTest < ActionController::TestCase
# test "the truth" do
# assert true
# end
include Devise::TestHelpers
test "should create user" do
@attr = {:email => "[email protected]", :password => "a1234567", :password_confirmation => "a1234567", :user_name => "huttneab"}
@request.env["devise.mapping"] = Devise.mappings[:user]
# post :create, :user => @attr
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment