From 608a2bfffc9186e71d52e0916b54b0f513994db2 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 20 Sep 2016 02:43:20 +0200 Subject: Upgrade to PubSubHubbub 0.4 (removing verify_token) --- spec/models/account_spec.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'spec/models') diff --git a/spec/models/account_spec.rb b/spec/models/account_spec.rb index 93731d1e4..0939ecdd0 100644 --- a/spec/models/account_spec.rb +++ b/spec/models/account_spec.rb @@ -66,14 +66,12 @@ RSpec.describe Account, type: :model do end describe '#subscribed?' do - it 'returns false when no secrets and tokens have been set' do + it 'returns false when no subscription expiration information is present' do expect(subject.subscribed?).to be false end - it 'returns true when the secret and token have been set' do - subject.secret = 'a' - subject.verify_token = 'b' - + it 'returns true when subscription expiration has been set' do + subject.subscription_expires_at = 30.days.from_now expect(subject.subscribed?).to be true end end -- cgit