Sha256: ad4ba7885e92b0ae7991c27d71733427ea59a1b3f895e1fb71c2ce88dd14ee3e
Contents?: true
Size: 658 Bytes
Versions: 53
Compression:
Stored size: 658 Bytes
Contents
require 'test_helper' class Contour::RegistrationsControllerTest < ActionController::TestCase setup do login(users(:admin)) request.env["devise.mapping"] = Devise.mappings[:user] end # test "an admin should be able to create new user" do # assert_difference('User.count') do # post :create, user: { first_name: 'First Name', last_name: 'Last Name', status: 'active', email: 'new_registration@example.com', # steering_committee: true, steering_committee_secretary: false, pp_committee: false, pp_committee_secretary: false, system_admin: false } # end # # assert_redirected_to user_path(assigns(:user)) # end end
Version data entries
53 entries across 53 versions & 1 rubygems