diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-03-31 20:50:21 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-03-31 20:50:21 +0530 |
commit | c0be6c9811512e242c38d2576270531e95152f16 (patch) | |
tree | 2aa657429414a46bb1bccc90522d5a240f0367bb /railties/test/application | |
parent | 3b0b573ac3ecbec5b1fa021abbe86b267bbefb8c (diff) | |
download | rails-c0be6c9811512e242c38d2576270531e95152f16.tar.gz rails-c0be6c9811512e242c38d2576270531e95152f16.tar.bz2 rails-c0be6c9811512e242c38d2576270531e95152f16.zip |
cleanup railties test; fix typos
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/console_test.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/railties/test/application/console_test.rb b/railties/test/application/console_test.rb index 80700a1d64..31bc003dcb 100644 --- a/railties/test/application/console_test.rb +++ b/railties/test/application/console_test.rb @@ -127,24 +127,23 @@ class FullStackConsoleTest < ActiveSupport::TestCase end def spawn_console - pid = Process.spawn( + Process.spawn( "#{app_path}/bin/rails console --sandbox", in: @slave, out: @slave, err: @slave ) assert_output "> ", 30 - pid end def test_sandbox - pid = spawn_console + spawn_console write_prompt "Post.count", "=> 0" write_prompt "Post.create" write_prompt "Post.count", "=> 1" @master.puts "quit" - pid = spawn_console + spawn_console write_prompt "Post.count", "=> 0" write_prompt "Post.transaction { Post.create; raise }" |