2015-01-16 01:06:32 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2015-01-18 16:21:18 +00:00
|
|
|
describe 'Help Pages', feature: true do
|
|
|
|
describe 'Show SSH page' do
|
2015-01-16 01:06:32 +00:00
|
|
|
before do
|
|
|
|
login_as :user
|
|
|
|
end
|
2015-01-18 16:21:18 +00:00
|
|
|
it 'replace the variable $your_email with the email of the user' do
|
2015-02-04 21:54:19 +00:00
|
|
|
visit help_page_path(category: 'ssh', file: 'README.md')
|
2015-01-16 01:06:32 +00:00
|
|
|
page.should have_content("ssh-keygen -t rsa -C \"#{@user.email}\"")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|