fix MR comments

This commit is contained in:
Bilal
2020-07-01 11:27:18 +02:00
parent 6fc05f0b7f
commit 469839cee7
3 changed files with 20 additions and 15 deletions

View File

@@ -104,6 +104,18 @@ feature "User managing videos" do
expect(page).to have_content("Second Video")
end
context 'When the user is associate' do
let(:current_user) { create(:user, :associate) }
it 'does show button to upload new video' do
Video.delete_all
visit project_videos_path(project)
expect(page).to have_content schedule_demo
expect(page).to have_content upload_new_video
end
end
private
def fill_in_video_fields(data)