fix repository specs

This commit is contained in:
Alexander Machehin 2015-04-02 19:58:41 +05:00
parent e5deae8fdd
commit 21adc43df6
1 changed files with 2 additions and 1 deletions

View File

@ -154,7 +154,8 @@ shared_examples_for 'platform admin user' do
end
it 'should be able to perform regenerate_metadata action of personal repository' do
put :regenerate_metadata, id: @personal_repository, platform_id: @personal_repository.platform, build_for_platform_id: @platform.id
put :regenerate_metadata, id: @personal_repository, platform_id: @personal_repository.platform,
repository: { build_for_platform_id: @platform.id }
response.should redirect_to(platform_repository_path(@personal_repository.platform, @personal_repository))
@personal_repository.repository_statuses.find_by(platform_id: @platform).
waiting_for_regeneration?.should be_truthy