initial data model implementation
This commit is contained in:
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
user: one
|
||||
commentable: one
|
||||
commentable_type: Commentable
|
||||
body: MyText
|
||||
|
||||
two:
|
||||
user: two
|
||||
commentable: two
|
||||
commentable_type: Commentable
|
||||
body: MyText
|
||||
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
category: 1
|
||||
fi: MyString
|
||||
en: MyString
|
||||
sv: MyString
|
||||
'no': MyString
|
||||
ru: MyString
|
||||
de: MyString
|
||||
notes: MyText
|
||||
verified: false
|
||||
created_by: one
|
||||
updated_by: one
|
||||
|
||||
two:
|
||||
category: 1
|
||||
fi: MyString
|
||||
en: MyString
|
||||
sv: MyString
|
||||
'no': MyString
|
||||
ru: MyString
|
||||
de: MyString
|
||||
notes: MyText
|
||||
verified: false
|
||||
created_by: two
|
||||
updated_by: two
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
entry: one
|
||||
user: one
|
||||
changes_made:
|
||||
change_type: MyString
|
||||
|
||||
two:
|
||||
entry: two
|
||||
user: two
|
||||
changes_made:
|
||||
change_type: MyString
|
||||
Vendored
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
entry: one
|
||||
language_code: MyString
|
||||
alternative_translation: MyString
|
||||
context: MyText
|
||||
reasoning: MyText
|
||||
source: MyString
|
||||
region: MyString
|
||||
status: 1
|
||||
submitted_by: one
|
||||
reviewed_by: one
|
||||
reviewed_at: 2026-01-22 13:38:22
|
||||
|
||||
two:
|
||||
entry: two
|
||||
language_code: MyString
|
||||
alternative_translation: MyString
|
||||
context: MyText
|
||||
reasoning: MyText
|
||||
source: MyString
|
||||
region: MyString
|
||||
status: 1
|
||||
submitted_by: two
|
||||
reviewed_by: two
|
||||
reviewed_at: 2026-01-22 13:38:22
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
code: MyString
|
||||
name: MyString
|
||||
native_name: MyString
|
||||
sort_order: 1
|
||||
active: false
|
||||
|
||||
two:
|
||||
code: MyString
|
||||
name: MyString
|
||||
native_name: MyString
|
||||
sort_order: 1
|
||||
active: false
|
||||
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
email: MyString
|
||||
password_digest: MyString
|
||||
name: MyString
|
||||
role: 1
|
||||
primary_language: MyString
|
||||
invitation_token: MyString
|
||||
invitation_sent_at: 2026-01-22 13:38:37
|
||||
invitation_accepted_at: 2026-01-22 13:38:37
|
||||
invited_by: one
|
||||
|
||||
two:
|
||||
email: MyString
|
||||
password_digest: MyString
|
||||
name: MyString
|
||||
role: 1
|
||||
primary_language: MyString
|
||||
invitation_token: MyString
|
||||
invitation_sent_at: 2026-01-22 13:38:37
|
||||
invitation_accepted_at: 2026-01-22 13:38:37
|
||||
invited_by: two
|
||||
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class CommentTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class EntryTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class EntryVersionTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class SuggestedMeaningTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class SupportedLanguageTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
@@ -0,0 +1,7 @@
|
||||
require "test_helper"
|
||||
|
||||
class UserTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
||||
@@ -0,0 +1,15 @@
|
||||
ENV["RAILS_ENV"] ||= "test"
|
||||
require_relative "../config/environment"
|
||||
require "rails/test_help"
|
||||
|
||||
module ActiveSupport
|
||||
class TestCase
|
||||
# Run tests in parallel with specified workers
|
||||
parallelize(workers: :number_of_processors)
|
||||
|
||||
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
||||
fixtures :all
|
||||
|
||||
# Add more helper methods to be used by all tests here...
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user