BigW Consortium Gitlab

index.html.haml_spec.rb 510 Bytes
Newer Older
1 2 3
require 'spec_helper'

describe 'admin/dashboard/index.html.haml' do
4
  include Devise::Test::ControllerHelpers
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

  before do
    assign(:projects, create_list(:empty_project, 1))
    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