forked from rails-api/active_model_serializers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlint_test.rb
49 lines (36 loc) · 847 Bytes
/
lint_test.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
require 'test_helper'
module ActiveModel
class Serializer
class LintTest < ActiveSupport::TestCase
include ActiveModel::Serializer::Lint::Tests
class CompliantResource
def serializable_hash(options = nil)
end
def read_attribute_for_serialization(name)
end
def as_json(options = nil)
end
def to_json(options = nil)
end
def cache_key
end
def id
end
def updated_at
end
def errors
end
def self.human_attribute_name(attr, options = {})
end
def self.lookup_ancestors
end
def self.model_name
@_model_name ||= ActiveModel::Name.new(self)
end
end
def setup
@resource = CompliantResource.new
end
end
end
end