summaryrefslogtreecommitdiff
path: root/spec/helpers
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-05-23 15:59:33 +0200
committerAlexis Reigel <mail@koffeinfrei.org>2017-05-24 22:29:59 +0200
commit6efe9c2f14a5d9d324931ae9e86f9d4e3356f256 (patch)
tree817b6c4b514c91a8ba1a54052cc4a0d2c1476a69 /spec/helpers
parentc1b5c8069e18f76313925d7a7a267cb203d51f9d (diff)
downloadgitlab-ce-6efe9c2f14a5d9d324931ae9e86f9d4e3356f256.tar.gz
atom links with rss token instead of private token
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/rss_helper_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/helpers/rss_helper_spec.rb b/spec/helpers/rss_helper_spec.rb
index f3f174f3d14..269e1057e8d 100644
--- a/spec/helpers/rss_helper_spec.rb
+++ b/spec/helpers/rss_helper_spec.rb
@@ -3,17 +3,17 @@ require 'spec_helper'
describe RssHelper do
describe '#rss_url_options' do
context 'when signed in' do
- it "includes the current_user's private_token" do
+ it "includes the current_user's rss_token" do
current_user = create(:user)
allow(helper).to receive(:current_user).and_return(current_user)
- expect(helper.rss_url_options).to include private_token: current_user.private_token
+ expect(helper.rss_url_options).to include rss_token: current_user.rss_token
end
end
context 'when signed out' do
- it "does not have a private_token" do
+ it "does not have an rss_token" do
allow(helper).to receive(:current_user).and_return(nil)
- expect(helper.rss_url_options[:private_token]).to be_nil
+ expect(helper.rss_url_options[:rss_token]).to be_nil
end
end
end