mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-07 05:03:26 +08:00
Fix hound
This commit is contained in:
parent
36e7cfe5c4
commit
208b7c9939
1 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ describe RepositoriesController, type: :controller do
|
|||
|
||||
it 'calls create activity for importing inventory items' do
|
||||
ImportRepository::ImportRecords.any_instance.stub(:import!)
|
||||
.and_return({status: :ok})
|
||||
.and_return(status: :ok)
|
||||
|
||||
expect(Activities::CreateActivityService)
|
||||
.to(receive(:call)
|
||||
|
@ -127,7 +127,7 @@ describe RepositoriesController, type: :controller do
|
|||
|
||||
it 'adds activity in DB' do
|
||||
ImportRepository::ImportRecords.any_instance.stub(:import!)
|
||||
.and_return({status: :ok})
|
||||
.and_return(status: :ok)
|
||||
|
||||
expect { action }
|
||||
.to(change { Activity.count })
|
||||
|
|
Loading…
Reference in a new issue