2019-07-25 01:24:42 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-04-06 08:40:33 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'Projects > Show > User sees README' do
|
|
|
|
set(:user) { create(:user) }
|
|
|
|
|
|
|
|
set(:project) { create(:project, :repository, :public) }
|
|
|
|
|
|
|
|
it 'shows the project README', :js do
|
|
|
|
visit project_path(project)
|
|
|
|
wait_for_requests
|
|
|
|
|
|
|
|
page.within('.readme-holder') do
|
|
|
|
expect(page).to have_content 'testme'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|