diff options
author | David RodrÃguez de Dios <deivid.rodriguez@gmail.com> | 2014-04-08 20:55:23 +0200 |
---|---|---|
committer | David RodrÃguez de Dios <deivid.rodriguez@gmail.com> | 2014-04-08 20:55:23 +0200 |
commit | 7901ae13a1d8187c1b620b51df7d840818fd759d (patch) | |
tree | 23aa668fe744dad54b3f2bbd787726aff00c60ec /railties/test/commands | |
parent | 75e0ee861f78d6b76ca8d6f7bf74b9dc1ca03bc3 (diff) | |
download | rails-7901ae13a1d8187c1b620b51df7d840818fd759d.tar.gz rails-7901ae13a1d8187c1b620b51df7d840818fd759d.tar.bz2 rails-7901ae13a1d8187c1b620b51df7d840818fd759d.zip |
Keep debugger support only for rubies < 2.0.0
Diffstat (limited to 'railties/test/commands')
-rw-r--r-- | railties/test/commands/console_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/commands/console_test.rb b/railties/test/commands/console_test.rb index a34beaedb3..87c5527b81 100644 --- a/railties/test/commands/console_test.rb +++ b/railties/test/commands/console_test.rb @@ -22,11 +22,11 @@ class Rails::ConsoleTest < ActiveSupport::TestCase def test_debugger_option console = Rails::Console.new(app, parse_arguments(["--debugger"])) assert console.debugger? - end + end if RUBY_VERSION < '2.0.0' def test_no_options console = Rails::Console.new(app, parse_arguments([])) - assert !console.debugger? + assert !console.debugger? if RUBY_VERSION < '2.0.0' assert !console.sandbox? end @@ -41,7 +41,7 @@ class Rails::ConsoleTest < ActiveSupport::TestCase rails_console.expects(:require_debugger).returns(nil) silence_stream(STDOUT) { rails_console.start } - end + end if RUBY_VERSION < '2.0.0' def test_start_with_sandbox app.expects(:sandbox=).with(true) |