diff options
author | Nick Thomas <nick@gitlab.com> | 2018-04-11 00:55:02 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-04-11 00:55:02 +0100 |
commit | 3f73bdd837f9803b75eca484a0a0615db6c58c80 (patch) | |
tree | 0bd2c99d9198bfa22e7a29f375131f940033da7b /spec/features/projects/show/rss_spec.rb | |
parent | b594ab949d1a2ceb9d949ff2641679fbdf273452 (diff) | |
parent | 37a5632483b67ddcfa4c535cc911319b25f01fb5 (diff) | |
download | gitlab-ce-xterm-npm.tar.gz |
Merge branch 'master' into xterm-npmxterm-npm
Diffstat (limited to 'spec/features/projects/show/rss_spec.rb')
-rw-r--r-- | spec/features/projects/show/rss_spec.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/features/projects/show/rss_spec.rb b/spec/features/projects/show/rss_spec.rb new file mode 100644 index 00000000000..d02eaf34533 --- /dev/null +++ b/spec/features/projects/show/rss_spec.rb @@ -0,0 +1,25 @@ +require 'spec_helper' + +feature 'Projects > Show > RSS' do + let(:user) { create(:user) } + let(:project) { create(:project, :repository, visibility_level: Gitlab::VisibilityLevel::PUBLIC) } + let(:path) { project_path(project) } + + context 'when signed in' do + before do + project.add_developer(user) + sign_in(user) + visit path + end + + it_behaves_like "an autodiscoverable RSS feed with current_user's RSS token" + end + + context 'when signed out' do + before do + visit path + end + + it_behaves_like "an autodiscoverable RSS feed without an RSS token" + end +end |