Favor ActiveSupport::TestCase over Minitest::Test

- Better minitest 4/5 support
- Better DSL
- Already available with no changes
- Consistent interface
This commit is contained in:
Benjamin Fleischer
2015-12-20 15:18:14 -06:00
parent 9909908962
commit 419faf03b9
45 changed files with 50 additions and 50 deletions

View File

@@ -4,7 +4,7 @@ module ActiveModel
class Serializer
module Adapter
class Json
class BelongsToTest < Minitest::Test
class BelongsToTest < ActiveSupport::TestCase
def setup
@post = Post.new(id: 42, title: 'New Post', body: 'Body')
@anonymous_post = Post.new(id: 43, title: 'Hello!!', body: 'Hello, world!!')