From 0858ec5b6806ac9698e74d5ede7b237724f4261a Mon Sep 17 00:00:00 2001 From: Alfredo Amatriain Date: Tue, 3 Jun 2014 11:04:33 +0200 Subject: [PATCH] Fix bugs in tests introduced in commit d6f44a72f14a844111280d2b58ad966577f6edae. --- spec/features/suite_1/refresh_feed_spec.rb | 2 +- spec/features/suite_2/feed_subscription_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/suite_1/refresh_feed_spec.rb b/spec/features/suite_1/refresh_feed_spec.rb index a7b1b8a5c..f140a9de3 100644 --- a/spec/features/suite_1/refresh_feed_spec.rb +++ b/spec/features/suite_1/refresh_feed_spec.rb @@ -11,7 +11,7 @@ @job_state = FactoryGirl.build :refresh_feed_job_state, user_id: @user.id, feed_id: @feed.id User.any_instance.stub :refresh_feed do |user| - if user.if == @user.id + if user.id == @user.id @user.refresh_feed_job_states << @job_state end end diff --git a/spec/features/suite_2/feed_subscription_spec.rb b/spec/features/suite_2/feed_subscription_spec.rb index 43f7418a9..97e47c602 100644 --- a/spec/features/suite_2/feed_subscription_spec.rb +++ b/spec/features/suite_2/feed_subscription_spec.rb @@ -167,7 +167,7 @@ before :each do User.any_instance.stub :find_subscribe_job_state do |user| - if user.if == @user.id + if user.id == @user.id @job_state.update state: SubscribeJobState::ERROR @job_state end