summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
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