diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-23 19:01:44 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-07-23 19:01:44 -0300 |
commit | b17330cf391327f63fece617acdb57b35e341092 (patch) | |
tree | 579a27728eb409ba5d0e7e3f3c6f7eb23130323c /railties/test | |
parent | 23cb26cfac0725ab979d026f52bf8f03d2a01309 (diff) | |
download | rails-b17330cf391327f63fece617acdb57b35e341092.tar.gz rails-b17330cf391327f63fece617acdb57b35e341092.tar.bz2 rails-b17330cf391327f63fece617acdb57b35e341092.zip |
Remove mocha usage
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/commands/console_test.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/railties/test/commands/console_test.rb b/railties/test/commands/console_test.rb index f765143f1d..4aea3e980f 100644 --- a/railties/test/commands/console_test.rb +++ b/railties/test/commands/console_test.rb @@ -58,9 +58,12 @@ class Rails::ConsoleTest < ActiveSupport::TestCase end def test_start_with_debugger - rails_console = Rails::Console.new(app, parse_arguments(["--debugger"])) - rails_console.expects(:require_debugger).returns(nil) + stubbed_console = Class.new(Rails::Console) do + def require_debugger + end + end + rails_console = stubbed_console.new(app, parse_arguments(["--debugger"])) silence_stream(STDOUT) { rails_console.start } end end |