summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-05-15 00:44:53 -0400
committerrealtradam <[email protected]>2024-05-15 00:44:53 -0400
commitd2ad5924bce17e3b07ee0af86a8739559dac3b35 (patch)
tree4d7e4384d15e0617a4b380149c29ffaccbca69fa /test
parenta97531e77e9e3f0e391b2504fcb278cabc2b901e (diff)
downloadgameHolster-d2ad5924bce17e3b07ee0af86a8739559dac3b35.tar.gz
gameHolster-d2ad5924bce17e3b07ee0af86a8739559dac3b35.zip
begin implementing game file upload and also styling
Diffstat (limited to 'test')
-rw-r--r--test/controllers/api/v1/games_controller_test.rb7
-rw-r--r--test/fixtures/games.yml13
-rw-r--r--test/models/game_test.rb7
3 files changed, 27 insertions, 0 deletions
diff --git a/test/controllers/api/v1/games_controller_test.rb b/test/controllers/api/v1/games_controller_test.rb
new file mode 100644
index 0000000..0052dbb
--- /dev/null
+++ b/test/controllers/api/v1/games_controller_test.rb
@@ -0,0 +1,7 @@
+require "test_helper"
+
+class Api::V1::GamesControllerTest < ActionDispatch::IntegrationTest
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/test/fixtures/games.yml b/test/fixtures/games.yml
new file mode 100644
index 0000000..ba6c0d7
--- /dev/null
+++ b/test/fixtures/games.yml
@@ -0,0 +1,13 @@
+# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
+
+one:
+ title: MyString
+ body: MyText
+ status: 1
+ user: one
+
+two:
+ title: MyString
+ body: MyText
+ status: 1
+ user: two
diff --git a/test/models/game_test.rb b/test/models/game_test.rb
new file mode 100644
index 0000000..6628fae
--- /dev/null
+++ b/test/models/game_test.rb
@@ -0,0 +1,7 @@
+require "test_helper"
+
+class GameTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end