aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test/cases/log_subscriber_test.rb
diff options
context:
space:
mode:
authorPrem Sichanugrist <s@sikachu.com>2011-05-15 15:34:36 -0400
committerPrem Sichanugrist <s@sikachu.com>2012-03-13 14:55:44 -0400
commitf1637bf2bb00490203503fbd943b73406e043d1d (patch)
tree53bfe16edac03871486be9be4160ff8aa0e28216 /activeresource/test/cases/log_subscriber_test.rb
parenta85714a673d2e06b923bd4eba443a3849d332cce (diff)
downloadrails-f1637bf2bb00490203503fbd943b73406e043d1d.tar.gz
rails-f1637bf2bb00490203503fbd943b73406e043d1d.tar.bz2
rails-f1637bf2bb00490203503fbd943b73406e043d1d.zip
Remove Active Resource source files from the repository
Dear Active Resource, It's not that I hate you or anything, but you didn't get much attention lately. There're so many alternatives out there, and I think people have made their choice to use them than you. I think it's time for you to have a big rest, peacefully in this Git repository. I will miss you, @sikachu.
Diffstat (limited to 'activeresource/test/cases/log_subscriber_test.rb')
-rw-r--r--activeresource/test/cases/log_subscriber_test.rb32
1 files changed, 0 insertions, 32 deletions
diff --git a/activeresource/test/cases/log_subscriber_test.rb b/activeresource/test/cases/log_subscriber_test.rb
deleted file mode 100644
index ab5c22a783..0000000000
--- a/activeresource/test/cases/log_subscriber_test.rb
+++ /dev/null
@@ -1,32 +0,0 @@
-require "abstract_unit"
-require "fixtures/person"
-require "active_support/log_subscriber/test_helper"
-require "active_resource/log_subscriber"
-require "active_support/core_ext/hash/conversions"
-
-class LogSubscriberTest < ActiveSupport::TestCase
- include ActiveSupport::LogSubscriber::TestHelper
-
- def setup
- super
-
- @matz = { :person => { :id => 1, :name => 'Matz' } }.to_json
- ActiveResource::HttpMock.respond_to do |mock|
- mock.get "/people/1.json", {}, @matz
- end
-
- ActiveResource::LogSubscriber.attach_to :active_resource
- end
-
- def set_logger(logger)
- ActiveResource::Base.logger = logger
- end
-
- def test_request_notification
- Person.find(1)
- wait
- assert_equal 2, @logger.logged(:info).size
- assert_equal "GET http://37s.sunrise.i:3000/people/1.json", @logger.logged(:info)[0]
- assert_match(/\-\-\> 200 200 33/, @logger.logged(:info)[1])
- end
-end