summaryrefslogtreecommitdiff
path: root/spec/features/snippets/show_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/snippets/show_spec.rb')
-rw-r--r--spec/features/snippets/show_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/features/snippets/show_spec.rb b/spec/features/snippets/show_spec.rb
index f31457db92f..3fe0b60b18f 100644
--- a/spec/features/snippets/show_spec.rb
+++ b/spec/features/snippets/show_spec.rb
@@ -155,4 +155,12 @@ describe 'Snippet', :js do
end
end
end
+
+ it_behaves_like 'showing user status' do
+ let(:file_name) { 'popen.rb' }
+ let(:content) { project.repository.blob_at('master', 'files/ruby/popen.rb').data }
+ let(:user_with_status) { snippet.author }
+
+ subject { visit snippet_path(snippet) }
+ end
end