diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2012-02-16 21:26:01 +0100 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2012-02-16 21:26:01 +0100 |
commit | c84e4b5d4bf0eefea9f0f649da6b82ec636678c2 (patch) | |
tree | a6e59f6ac31e4dfe552e94b3398928309b9ddff2 /railties/test | |
parent | dd655d88d660da8c094d20948ee721d29852f723 (diff) | |
download | rails-c84e4b5d4bf0eefea9f0f649da6b82ec636678c2.tar.gz rails-c84e4b5d4bf0eefea9f0f649da6b82ec636678c2.tar.bz2 rails-c84e4b5d4bf0eefea9f0f649da6b82ec636678c2.zip |
Fix tests, Rails.env may be different on CI
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/commands/console_test.rb | 7 |
1 files changed, 5 insertions, 2 deletions
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 |