diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-22 15:57:03 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-22 15:57:03 -0800 |
commit | e83d15376d7ca10e20a720727f22cc9cdbbd662c (patch) | |
tree | 16d1a21b170b5852990ba3392f26fc4714110a45 | |
parent | 4395d493c5df5476e9e31df3336fc81c8a3e5d3c (diff) | |
download | rails-e83d15376d7ca10e20a720727f22cc9cdbbd662c.tar.gz rails-e83d15376d7ca10e20a720727f22cc9cdbbd662c.tar.bz2 rails-e83d15376d7ca10e20a720727f22cc9cdbbd662c.zip |
adding a test for the runner module [#6027 state:resolved]
-rw-r--r-- | actionpack/test/controller/runner_test.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/actionpack/test/controller/runner_test.rb b/actionpack/test/controller/runner_test.rb new file mode 100644 index 0000000000..24c220dcd5 --- /dev/null +++ b/actionpack/test/controller/runner_test.rb @@ -0,0 +1,22 @@ +require 'abstract_unit' +require 'action_dispatch/testing/integration' + +module ActionDispatch + class RunnerTest < Test::Unit::TestCase + class MyRunner + include Integration::Runner + + def initialize(session) + @integration_session = session + end + + def hi; end + end + + def test_respond_to? + runner = MyRunner.new(Class.new { def x; end }.new) + assert runner.respond_to?(:hi) + assert runner.respond_to?(:x) + end + end +end |