diff options
author | Phil Hughes <me@iamphill.com> | 2017-12-06 15:49:34 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-12-06 15:49:34 +0300 |
commit | 4783f15a2dc1d6f42532e59ed68b5c7d9a7426f8 (patch) | |
tree | 05eba0e3f5538b772a43f73bde3a69cb20d6be1b /spec/views/dashboard | |
parent | 6836078304f8eb889c1d3324c4bcf04a1168afcd (diff) |
Fixes admin welcome states new group path
Closes #40645
Diffstat (limited to 'spec/views/dashboard')
-rw-r--r-- | spec/views/dashboard/projects/_blank_state_admin_welcome.haml.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/views/dashboard/projects/_blank_state_admin_welcome.haml.rb b/spec/views/dashboard/projects/_blank_state_admin_welcome.haml.rb new file mode 100644 index 00000000000..2f58eec86dc --- /dev/null +++ b/spec/views/dashboard/projects/_blank_state_admin_welcome.haml.rb @@ -0,0 +1,15 @@ +require 'spec_helper' + +describe 'dashboard/projects/_blank_state_admin_welcome.html.haml' do + let(:user) { create(:admin) } + + before do + allow(view).to receive(:current_user).and_return(user) + end + + it 'links to new group path' do + render + + expect(rendered).to have_link('Create a group', href: new_group_path) + end +end |