I am trying to test ActiveModelSerializer (https://github.com/rails-api/active_model_serializers) but having facing some trouble.
I created a plain rails api project and the tests run successfully (Repo: https://github.com/ratneshraval/serializer-rails)
When using jets api, I played around but couldn’t get past the following error. (Repo: https://github.com/ratneshraval/serializer-jets)
undefined method `assert_serializer' for #<RSpec::ExampleGroups::TodosController::GETIndex:0x00007ff1423cfbc8>
When including ActiveModelSerializers::Test::Schema, ActiveModelSerializers::Test::Serializer
I get following error.
undefined method `setup' for RSpec::ExampleGroups::TodosController:Class
Any help would be appreciated.
Thanks