blob: 0561efc62f5c00bf8139cbf1e6a699a28eb1755a (
plain) (
blame)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 | require 'abstract_unit'
class SweeperTest < ActionController::TestCase
  class ::AppSweeper < ActionController::Caching::Sweeper; end
  def test_sweeper_should_not_ignore_unknown_method_calls
    sweeper = ActionController::Caching::Sweeper.send(:new)
    assert_raise NameError do
      sweeper.instance_eval do
        some_method_that_doesnt_exist
      end
    end
  end
end
 |