From a97531e77e9e3f0e391b2504fcb278cabc2b901e Mon Sep 17 00:00:00 2001 From: realtradam Date: Thu, 2 May 2024 20:54:36 -0400 Subject: finish inital auth --- test/controllers/api/v1/users_controller_test.rb | 23 +++++++++++++++++++++++ test/fixtures/users.yml | 13 +++++++++++++ test/models/user_test.rb | 7 +++++++ 3 files changed, 43 insertions(+) create mode 100644 test/controllers/api/v1/users_controller_test.rb create mode 100644 test/fixtures/users.yml create mode 100644 test/models/user_test.rb (limited to 'test') diff --git a/test/controllers/api/v1/users_controller_test.rb b/test/controllers/api/v1/users_controller_test.rb new file mode 100644 index 0000000..e5636d1 --- /dev/null +++ b/test/controllers/api/v1/users_controller_test.rb @@ -0,0 +1,23 @@ +require "test_helper" + +class Api::V1::UsersControllerTest < ActionDispatch::IntegrationTest + test "should get index" do + get api_v1_users_index_url + assert_response :success + end + + test "should get new" do + get api_v1_users_new_url + assert_response :success + end + + test "should get create" do + get api_v1_users_create_url + assert_response :success + end + + test "should get delete" do + get api_v1_users_delete_url + assert_response :success + end +end diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml new file mode 100644 index 0000000..9cf2d21 --- /dev/null +++ b/test/fixtures/users.yml @@ -0,0 +1,13 @@ +# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + identifier: MyString + access_token_digest: MyString + salt: MyString + data: + +two: + identifier: MyString + access_token_digest: MyString + salt: MyString + data: diff --git a/test/models/user_test.rb b/test/models/user_test.rb new file mode 100644 index 0000000..5c07f49 --- /dev/null +++ b/test/models/user_test.rb @@ -0,0 +1,7 @@ +require "test_helper" + +class UserTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end -- cgit v1.2.3