From 9415011b5fd192f1bafeaa9b6eacbb7921382a00 Mon Sep 17 00:00:00 2001 From: David Gay Date: Wed, 19 May 2021 22:53:38 -0400 Subject: Chat --- test/fixtures/chat_messages.yml | 7 +++++++ test/fixtures/chat_rooms.yml | 9 +++++++++ test/models/chat_message_test.rb | 7 +++++++ test/models/chat_room_test.rb | 7 +++++++ 4 files changed, 30 insertions(+) create mode 100644 test/fixtures/chat_messages.yml create mode 100644 test/fixtures/chat_rooms.yml create mode 100644 test/models/chat_message_test.rb create mode 100644 test/models/chat_room_test.rb (limited to 'test') diff --git a/test/fixtures/chat_messages.yml b/test/fixtures/chat_messages.yml new file mode 100644 index 0000000..0ce7cf8 --- /dev/null +++ b/test/fixtures/chat_messages.yml @@ -0,0 +1,7 @@ +# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + chat_room: one + +two: + chat_room: two diff --git a/test/fixtures/chat_rooms.yml b/test/fixtures/chat_rooms.yml new file mode 100644 index 0000000..8476a5b --- /dev/null +++ b/test/fixtures/chat_rooms.yml @@ -0,0 +1,9 @@ +# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + name: MyString + permission_level: 1 + +two: + name: MyString + permission_level: 1 diff --git a/test/models/chat_message_test.rb b/test/models/chat_message_test.rb new file mode 100644 index 0000000..78428cf --- /dev/null +++ b/test/models/chat_message_test.rb @@ -0,0 +1,7 @@ +require "test_helper" + +class ChatMessageTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/chat_room_test.rb b/test/models/chat_room_test.rb new file mode 100644 index 0000000..3451e5c --- /dev/null +++ b/test/models/chat_room_test.rb @@ -0,0 +1,7 @@ +require "test_helper" + +class ChatRoomTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end -- cgit v1.2.3