mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 23:33:12 +00:00
Use Minitest::Test instead of ActiveModel::TestCase
This commit is contained in:
@@ -3,7 +3,7 @@ require 'fixtures/active_record'
|
||||
|
||||
module ActiveModel
|
||||
class Serializer
|
||||
class ActiveRecordTest < ActiveModel::TestCase
|
||||
class ActiveRecordTest < Minitest::Test
|
||||
def setup
|
||||
@post = ARPost.first
|
||||
end
|
||||
|
||||
@@ -16,7 +16,6 @@ class ScaffoldControllerGeneratorTest < Rails::Generators::TestCase
|
||||
run_generator
|
||||
|
||||
assert_file 'app/controllers/accounts_controller.rb' do |content|
|
||||
|
||||
assert_instance_method :index, content do |m|
|
||||
assert_match /@accounts = Account\.all/, m
|
||||
assert_match /format.html/, m
|
||||
@@ -60,8 +59,6 @@ class ScaffoldControllerGeneratorTest < Rails::Generators::TestCase
|
||||
|
||||
assert_match(/def account_params/, content)
|
||||
assert_match(/params\.require\(:account\)\.permit\(:name, :description, :business_id\)/, content)
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user