Skip to content

Commit

Permalink
Fix bugs in tests introduced in commit d6f44a7.
Browse files Browse the repository at this point in the history
  • Loading branch information
amatriain committed Jun 3, 2014
1 parent d6f44a7 commit 0858ec5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/features/suite_1/refresh_feed_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion spec/features/suite_2/feed_subscription_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0858ec5

Please sign in to comment.