BigW Consortium Gitlab

rss_spec.rb 434 Bytes
Newer Older
1 2 3
require 'spec_helper'

feature 'User RSS' do
4
  let(:user) { create(:user) }
5 6 7 8
  let(:path) { user_path(create(:user)) }

  context 'when signed in' do
    before do
9
      sign_in(user)
10 11 12
      visit path
    end

13
    it_behaves_like "it has an RSS button with current_user's RSS token"
14 15 16 17 18 19 20
  end

  context 'when signed out' do
    before do
      visit path
    end

21
    it_behaves_like "it has an RSS button without an RSS token"
22 23
  end
end