Permalink
Browse files

Fix tests, Rails.env may be different on CI

  • Loading branch information...
1 parent dd655d8 commit c84e4b5d4bf0eefea9f0f649da6b82ec636678c2 @drogus drogus committed Feb 16, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 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

0 comments on commit c84e4b5

Please sign in to comment.