From c84e4b5d4bf0eefea9f0f649da6b82ec636678c2 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Thu, 16 Feb 2012 21:26:01 +0100 Subject: Fix tests, Rails.env may be different on CI --- railties/test/commands/console_test.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'railties') diff --git a/railties/test/commands/console_test.rb b/railties/test/commands/console_test.rb index eb0a29d84a..01847ae58c 100644 --- a/railties/test/commands/console_test.rb +++ b/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 @@ class Rails::ConsoleTest < ActiveSupport::TestCase 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 @@ class Rails::ConsoleTest < ActiveSupport::TestCase 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 -- cgit v1.2.3