diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-02-28 23:50:57 +0300 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-02-28 23:50:57 +0300 |
commit | a2670ee06b05c1abf31c11972319c6a59ef6940a (patch) | |
tree | 618c159bac47314bd0861ac79538ae44a365a869 /spec/features/users | |
parent | 05c8ec6cb85a3943b53cbd5757e7baea300dac68 (diff) |
Show public RSS feeds to anonymous users
Diffstat (limited to 'spec/features/users')
-rw-r--r-- | spec/features/users/rss_spec.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/spec/features/users/rss_spec.rb b/spec/features/users/rss_spec.rb new file mode 100644 index 00000000000..14564abb16d --- /dev/null +++ b/spec/features/users/rss_spec.rb @@ -0,0 +1,22 @@ +require 'spec_helper' + +feature 'User RSS' do + let(:path) { user_path(create(:user)) } + + context 'when signed in' do + before do + login_as(create(:user)) + visit path + end + + it_behaves_like "it has an RSS button with current_user's private token" + end + + context 'when signed out' do + before do + visit path + end + + it_behaves_like "it has an RSS button without a private token" + end +end |