Use Minitest::Test instead of ActiveModel::TestCase

This commit is contained in:
Santiago Pastorino
2014-01-09 21:52:10 -02:00
parent cec7980208
commit 1ec499bd64
19 changed files with 36 additions and 36 deletions

View File

@@ -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

View File

@@ -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