diff options
author | Rémy Coutable <remy@rymai.me> | 2018-04-06 15:40:33 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2018-04-10 02:04:09 +0300 |
commit | 2d54dfb25134cbdf5b4f506b69d13241130bc132 (patch) | |
tree | 3ba70e41da756ad6f0e9a17925ff5dd9beaa9b8c /spec/features/projects/show/rss_spec.rb | |
parent | ffc9a470a8bf02d6ac97ea1bb00a0a4fab664314 (diff) |
Migrate features/project/project.feature to RSpec and reorganize several Project feature specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
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 |