diff options
author | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-07-18 13:58:08 +0200 |
---|---|---|
committer | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-07-23 06:56:32 +0200 |
commit | 10d9df28ec3b494361abcee27ffddece580bbf3a (patch) | |
tree | 4036e82af3d29532a6d4392b500d1126ed49b581 /spec/views | |
parent | 46a17ffd5a200b4d2aca914ef5bafe46db1cb9bf (diff) | |
download | gitlab-ce-10d9df28ec3b494361abcee27ffddece580bbf3a.tar.gz |
Add gitlab-workhorse version to admin dashboard
Test for showing GitLab Workhorse version on Admin Dashboard
Refactoring
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/admin/dashboard/index.html.haml_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/views/admin/dashboard/index.html.haml_spec.rb b/spec/views/admin/dashboard/index.html.haml_spec.rb new file mode 100644 index 00000000000..dae858a52f6 --- /dev/null +++ b/spec/views/admin/dashboard/index.html.haml_spec.rb @@ -0,0 +1,20 @@ +require 'spec_helper' + +describe 'admin/dashboard/index.html.haml' do + include Devise::TestHelpers + + 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 |