You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expect(e.message).tomatch(/expected #{Regexp.escaperecord.inspect} to be a new String and attributes \{.*\} were not set on #{Regexp.escaperecord.inspect}/)
169
-
expect(e.message).tomatch(/"zoo"=>"zoo"/)
170
-
expect(e.message).tomatch(/"car"=>"car"/)
191
+
ifRUBY_VERSION >= '3.4'
192
+
expect(e.message).tomatch(/"zoo" => "zoo"/)
193
+
expect(e.message).tomatch(/"car" => "car"/)
194
+
else
195
+
expect(e.message).tomatch(/"zoo"=>"zoo"/)
196
+
expect(e.message).tomatch(/"car"=>"car"/)
197
+
end
171
198
}
172
199
end
173
200
end
174
201
175
202
context"one attribute value not the same"do
176
203
it"fails"do
204
+
message=
205
+
"expected #{record.inspect} to be a new String and " +
206
+
ifRUBY_VERSION >= '3.4'
207
+
%(attribute {"foo" => "bar"} was not set on #{record.inspect})
208
+
else
209
+
%(attribute {"foo"=>"bar"} was not set on #{record.inspect})
0 commit comments