We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d048f20 commit b46cc33Copy full SHA for b46cc33
lib/active_model/serializer/lint.rb
@@ -39,8 +39,7 @@ def test_read_attribute_for_serialization
39
# using absolute value since arity is:
40
# -1 for alias :read_attribute_for_serialization :send
41
# 1 for def read_attribute_for_serialization(name); end
42
- # 2 for rbx because rbx
43
- expected_arity = defined?(::Rubinius) ? 2 : 1
+ expected_arity = 1
44
assert_equal resource.method(:read_attribute_for_serialization).arity.abs, expected_arity
45
end
46
0 commit comments