Sha256: 68c15df55a4331bea0a6b2e538df7d5489f1c7882da44495e650c328fd388371
Contents?: true
Size: 435 Bytes
Versions: 1
Compression:
Stored size: 435 Bytes
Contents
require 'test_helper' class ParamsPatrolTest < Test::Unit::TestCase def test_handler= logger = lambda { |x| Logger.new(StringIO.new).info(x) } ParamsPatrol.handler = logger assert_equal(logger, ParamsPatrol.handler) end def test_handle logger = lambda { |x| Logger.new(StringIO.new).info(x) } ParamsPatrol.handler = logger logger.expects(:call) ParamsPatrol.handle('unpermitted params!') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
params_patrol-0.1.0 | test/params_patrol_test.rb |