File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -862,7 +862,7 @@ def _model_class
862862
863863 @model_class = model_name . to_s . safe_constantize
864864 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."
866866 end
867867
868868 @model_class
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ def test_nil_model_class
184184 # ToDo:Figure out why this test does not work on Rails 4.0
185185 # :nocov:
186186 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
188188 assert_nil NoMatchResource . _model_class
189189 end
190190 end
@@ -637,7 +637,7 @@ class NoModelResource < JSONAPI::Resource
637637 NoModelResource._model_class
638638 CODE
639639 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
641641 end
642642
643643 def test_no_warning_when_abstract
You can’t perform that action at this time.
0 commit comments