8062380f60
This fixes an issue with Rails 5 and brings us up-to-date with the latest Devise release. This also replaces the deprecated Devise::TestHelpers with Devise::Test::ControllerHelpers. Changelog: https://github.com/plataformatec/devise/blob/v4.2.0/CHANGELOG.md#420---2016-07-01
20 lines
510 B
Ruby
20 lines
510 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'admin/dashboard/index.html.haml' do
|
|
include Devise::Test::ControllerHelpers
|
|
|
|
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
|