mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 17:51:13 +08:00
Rename MyModule serializer in tests [SCI-2742]
This commit is contained in:
parent
e4e66d3e5d
commit
b833ff6616
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ RSpec.describe "Api::V1::TasksController", type: :request do
|
|||
expect(hash_body[:data]).to match(
|
||||
ActiveModelSerializers::SerializableResource
|
||||
.new(@valid_experiment.my_modules,
|
||||
each_serializer: Api::V1::MyModuleSerializer)
|
||||
each_serializer: Api::V1::TaskSerializer)
|
||||
.as_json[:data]
|
||||
)
|
||||
end
|
||||
|
@ -95,7 +95,7 @@ RSpec.describe "Api::V1::TasksController", type: :request do
|
|||
expect(hash_body[:data]).to match(
|
||||
ActiveModelSerializers::SerializableResource
|
||||
.new(@valid_experiment.my_modules.first,
|
||||
serializer: Api::V1::MyModuleSerializer)
|
||||
serializer: Api::V1::TaskSerializer)
|
||||
.as_json[:data]
|
||||
)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue