Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> This commit refactors the entire application to replace the 'parties' concept with 'events'. All controllers, models, views, and related files have been updated to reflect this change. The parties table has been replaced with an events table, and all related functionality has been updated accordingly.
14 lines
429 B
Ruby
Executable File
14 lines
429 B
Ruby
Executable File
require "test_helper"
|
|
|
|
class ApplicationRecordTest < ActiveSupport::TestCase
|
|
# Test that ApplicationRecord is abstract
|
|
test "should be abstract class" do
|
|
assert ApplicationRecord.abstract_class?
|
|
end
|
|
|
|
# Test that ApplicationRecord inherits from ActiveRecord::Base
|
|
test "should inherit from ActiveRecord::Base" do
|
|
assert_kind_of Class, ApplicationRecord
|
|
assert ApplicationRecord < ActiveRecord::Base
|
|
end
|
|
end |