notebook/test/controllers/users_controller_test.rb

12 lines
285 B
Ruby

require 'test_helper'
class UsersControllerTest < ActionController::TestCase
test "should get user profile without error" do
test_user = User.create(email: 'test+test@test.test', password: 'testtesttest')
get :show, id: test_user.id
assert_response :success
end
end