Added tests for the MembersController and corrected some more tests
This commit is contained in:
parent
57b5612aaa
commit
cfd8f635b3
2 changed files with 15 additions and 1 deletions
|
@ -0,0 +1,14 @@
|
|||
require('spec_helper')
|
||||
|
||||
describe Projects::Settings::MembersController do
|
||||
let(:project) { create(:empty_project, :public, :access_requestable) }
|
||||
|
||||
describe 'GET show' do
|
||||
it 'renders show with 200 status code' do
|
||||
get :show, namespace_id: project.namespace, project_id: project
|
||||
|
||||
expect(response).to have_http_status(200)
|
||||
expect(response).to render_template(:show)
|
||||
end
|
||||
end
|
||||
end
|
|
@ -17,7 +17,7 @@ feature 'Project group links', feature: true, js: true do
|
|||
visit namespace_project_settings_members_path(project.namespace, project)
|
||||
|
||||
select2 group.id, from: '#link_group_id'
|
||||
fill_in 'expires_at', with: (Time.current + 4.5.days).strftime('%Y-%m-%d')
|
||||
fill_in 'expires_at_groups', with: (Time.current + 4.5.days).strftime('%Y-%m-%d')
|
||||
page.find('body').click
|
||||
click_on 'Share'
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue