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 fbfb04b commit 4a3ee40Copy full SHA for 4a3ee40
lib/rspec/active_model/mocks/mocks.rb
@@ -97,6 +97,7 @@ def mock_model(string_or_model_class, stubs={})
97
model_class = Object.const_get(string_or_model_class)
98
else
99
model_class = Object.const_set(string_or_model_class, Class.new do
100
+ # rubocop:disable Style/SingleLineMethods
101
extend ::ActiveModel::Naming
102
def self.primary_key; :id; end
103
@@ -106,6 +107,7 @@ def self._reflect_on_association(_other); nil; end
106
107
def self.composite_primary_key?; false; end
108
def self.has_query_constraints?; false; end
109
def self.param_delimiter; "-"; end
110
+ # rubocop:enable Style/SingleLineMethods
111
end)
112
end
113
0 commit comments