From e6191411d5f8baf69fe4762afc3ab25c0e988498 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 5 Jul 2015 09:03:09 +0200 Subject: [PATCH] Applied rubocop. --- test/integration/twitter_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/twitter_test.rb b/test/integration/twitter_test.rb index a4d36208d..d60f70400 100644 --- a/test/integration/twitter_test.rb +++ b/test/integration/twitter_test.rb @@ -166,9 +166,9 @@ class TwitterTest < ActiveSupport::TestCase assert( article, "outbound article created, text: #{reply_text}" ) tweet_found = false - client.user_timeline('armin_theo').each { |tweet| + client.user_timeline('armin_theo').each { |local_tweet| - next if tweet.id != article.message_id + next if local_tweet.id != article.message_id tweet_found = true break } @@ -221,7 +221,7 @@ class TwitterTest < ActiveSupport::TestCase } assert( article, 'inbound article created' ) - ticket = article.ticket + ticket = article.ticket assert( ticket, 'ticket of inbound article exists' ) assert( ticket.articles, 'ticket.articles exists' ) assert_equal( ticket.articles.count, 1, 'ticket article inbound count' )