File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -862,7 +862,7 @@ def _model_class
862
862
863
863
@model_class = model_name . to_s . safe_constantize
864
864
if @model_class . nil?
865
- warn "[MODEL NOT FOUND] Model could not be found for #{ self . name } . If this a base Resource declare it as abstract."
865
+ warn "[MODEL NOT FOUND] Model could not be found for #{ self . name } . If this is a base Resource declare it as abstract."
866
866
end
867
867
868
868
@model_class
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ def test_nil_model_class
184
184
# ToDo:Figure out why this test does not work on Rails 4.0
185
185
# :nocov:
186
186
if ( Rails ::VERSION ::MAJOR >= 4 && Rails ::VERSION ::MINOR >= 1 ) || ( Rails ::VERSION ::MAJOR >= 5 )
187
- assert_output nil , "[MODEL NOT FOUND] Model could not be found for NoMatchResource. If this a base Resource declare it as abstract.\n " do
187
+ assert_output nil , "[MODEL NOT FOUND] Model could not be found for NoMatchResource. If this is a base Resource declare it as abstract.\n " do
188
188
assert_nil NoMatchResource . _model_class
189
189
end
190
190
end
@@ -637,7 +637,7 @@ class NoModelResource < JSONAPI::Resource
637
637
NoModelResource._model_class
638
638
CODE
639
639
end
640
- assert_match "[MODEL NOT FOUND] Model could not be found for ResourceTest::NoModelResource. If this a base Resource declare it as abstract.\n " , err
640
+ assert_match "[MODEL NOT FOUND] Model could not be found for ResourceTest::NoModelResource. If this is a base Resource declare it as abstract.\n " , err
641
641
end
642
642
643
643
def test_no_warning_when_abstract
You can’t perform that action at this time.
0 commit comments