Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix tests, Rails.env may be different on CI

  • Loading branch information...
commit c84e4b5d4bf0eefea9f0f649da6b82ec636678c2 1 parent dd655d8
@drogus drogus authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 railties/test/commands/console_test.rb
View
7 railties/test/commands/console_test.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.