0ce6785851
Replaces all the explicit include metadata syntax in the specs (tag: true) into the implicit one (:tag). Added a cop to prevent future errors and handle autocorrection.
27 lines
636 B
Ruby
27 lines
636 B
Ruby
require 'spec_helper'
|
|
|
|
feature 'User creates a project', :js do
|
|
let(:user) { create(:user) }
|
|
|
|
before do
|
|
sign_in(user)
|
|
create(:personal_key, user: user)
|
|
visit(new_project_path)
|
|
end
|
|
|
|
it 'creates a new project' do
|
|
fill_in(:project_path, with: 'Empty')
|
|
|
|
page.within('#content-body') do
|
|
click_button('Create project')
|
|
end
|
|
|
|
project = Project.last
|
|
|
|
expect(current_path).to eq(project_path(project))
|
|
expect(page).to have_content('Empty')
|
|
expect(page).to have_content('git init')
|
|
expect(page).to have_content('git remote')
|
|
expect(page).to have_content(project.url_to_repo)
|
|
end
|
|
end
|