Permalink
Browse files

use public api for testing rather than grabbing instance variables

  • Loading branch information...
1 parent def815a commit 8ece52f731d3ae9dfc52033e3652b8f011632877 @tenderlove tenderlove committed May 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/test/controller/filters_test.rb
@@ -10,7 +10,7 @@ class << self
def before_filters
filters = _process_action_callbacks.select { |c| c.kind == :before }
- filters.map! { |c| c.instance_variable_get(:@raw_filter) }
+ filters.map! { |c| c.raw_filter }
@egilburg

egilburg May 14, 2013

Contributor

&:raw_filter :)

end
end

0 comments on commit 8ece52f

Please sign in to comment.