提交 c84e4b5d 编写于 作者: P Piotr Sarnacki

Fix tests, Rails.env may be different on CI

上级 dd655d88
......@@ -5,6 +5,9 @@ class Rails::ConsoleTest < ActiveSupport::TestCase
class FakeConsole
end
def setup
end
def test_sandbox_option
console = Rails::Console.new(app, ["--sandbox"])
assert console.sandbox?
......@@ -32,7 +35,7 @@ def test_start
start
assert_match /Loading development environment \(Rails/, output
assert_match /Loading \w+ environment \(Rails/, output
end
def test_start_with_debugger
......@@ -49,7 +52,7 @@ def test_start_with_sandbox
start ["--sandbox"]
assert_match /Loading development environment in sandbox \(Rails/, output
assert_match /Loading \w+ environment in sandbox \(Rails/, output
end
def test_console_defaults_to_IRB
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册