Commit 4cd6fc6e authored by Alexis Reigel's avatar Alexis Reigel

create User#rss_token in user factory explicitely

otherwise we'll have to use `user.reload` in the specs to get the
current rss_token value.
parent 2f277d10
......@@ -8,6 +8,10 @@ FactoryGirl.define do
confirmation_token { nil }
can_create_group true
before(:create) do |user|
user.ensure_rss_token
end
trait :admin do
admin true
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment