aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/commands/console_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/test/commands/console_test.rb')
-rw-r--r--railties/test/commands/console_test.rb6
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)