summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-05-02 20:54:36 -0400
committerrealtradam <[email protected]>2024-05-02 20:54:36 -0400
commita97531e77e9e3f0e391b2504fcb278cabc2b901e (patch)
treeb8cd2f6094b66a574a5f1f6dda68f5c852a8c105 /test
parent3108882fd50308ed1e3d0a587ce2709aa12a6d9e (diff)
downloadgameHolster-a97531e77e9e3f0e391b2504fcb278cabc2b901e.tar.gz
gameHolster-a97531e77e9e3f0e391b2504fcb278cabc2b901e.zip
finish inital auth
Diffstat (limited to 'test')
-rw-r--r--test/controllers/api/v1/users_controller_test.rb23
-rw-r--r--test/fixtures/users.yml13
-rw-r--r--test/models/user_test.rb7
3 files changed, 43 insertions, 0 deletions
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