aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-03-31 20:50:21 +0530
committerVipul A M <vipulnsward@gmail.com>2013-03-31 20:50:21 +0530
commitc0be6c9811512e242c38d2576270531e95152f16 (patch)
tree2aa657429414a46bb1bccc90522d5a240f0367bb /railties/test/application
parent3b0b573ac3ecbec5b1fa021abbe86b267bbefb8c (diff)
downloadrails-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.rb7
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 }"