2016-07-18 11:58:08 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'admin/dashboard/index.html.haml' do
|
2016-09-21 23:06:33 +00:00
|
|
|
include Devise::Test::ControllerHelpers
|
2016-07-18 11:58:08 +00:00
|
|
|
|
|
|
|
before do
|
2017-08-02 19:55:11 +00:00
|
|
|
assign(:projects, create_list(:project, 1))
|
2016-07-18 11:58:08 +00:00
|
|
|
assign(:users, create_list(:user, 1))
|
|
|
|
assign(:groups, create_list(:group, 1))
|
|
|
|
|
|
|
|
allow(view).to receive(:admin?).and_return(true)
|
|
|
|
end
|
|
|
|
|
|
|
|
it "shows version of GitLab Workhorse" do
|
|
|
|
render
|
|
|
|
|
|
|
|
expect(rendered).to have_content 'GitLab Workhorse'
|
|
|
|
expect(rendered).to have_content Gitlab::Workhorse.version
|
|
|
|
end
|
|
|
|
end
|