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