Permalink
Browse files

Revert "Monkey patch ammeter to fix issue with changes to delegate fr…

…om Rails 4"

Patch has been accepted into ammeter 0.2.5

This reverts commit 839ac01.
  • Loading branch information...
twalpole committed May 4, 2012
1 parent ad81968 commit 0eca60df542bfabeae8fa965405c38a4f19b2d2e
Showing with 0 additions and 19 deletions.
  1. +0 −19 spec/support/ammeter.rb
View
@@ -1,19 +0,0 @@
-require 'ammeter'
-# Rails 4 changes the implementation of delegate to no longer use send.
-#Because of this it can no longer be used to delegate to a protected of another object as Ammeter attempts to do for prepare_destination
-#Monkey patch Ammeter to call send itself for perpare_destination when in Rails 4.
-#Needed until Ammeter fixes itself
-module Ammeter
- module RSpec
- module Rails
- # Delegates to Rails::Generators::TestCase to work with RSpec.
- module GeneratorExampleGroup
- module ClassMethods
- def prepare_destination
- self.test_unit_test_case_delegate.send :prepare_destination
- end
- end
- end
- end
- end
-end if ::Rails::VERSION::MAJOR == 4

0 comments on commit 0eca60d

Please sign in to comment.