summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2012-08-29 17:28:21 +0200
committergebele <gebele@in-silico.ch>2012-08-29 17:28:21 +0200
commitb4433b8dbaa35111eff54c1b8a7d3ee09b448bd8 (patch)
tree633fcf97533b8d2e0d142b2f38ba63be2629a026
parent7c2db8e5c5aeac83b19234033901e334aa124fce (diff)
updated instructions
-rw-r--r--_posts/2012-08-27-testing-website-with-capybara-webkit-and-testunit.md4
1 files changed, 1 insertions, 3 deletions
diff --git a/_posts/2012-08-27-testing-website-with-capybara-webkit-and-testunit.md b/_posts/2012-08-27-testing-website-with-capybara-webkit-and-testunit.md
index eb745f2..2de1795 100644
--- a/_posts/2012-08-27-testing-website-with-capybara-webkit-and-testunit.md
+++ b/_posts/2012-08-27-testing-website-with-capybara-webkit-and-testunit.md
@@ -41,7 +41,7 @@ you can ignore warnings like:
[config] failed to initialise udev<br>*
-You can integrate this command to your test.
+You can integrate this command to your test. For the following example `export 'DISPLAY=localhost:1.0'` is already in ~/.bashrc.
# Example test:
@@ -64,7 +64,6 @@ You can integrate this command to your test.
def test_00_start
`Xvfb :1 -screen 0 1024x768x16 -nolisten inet6 &`
- `export 'DISPLAY=localhost:1.0'`
sleep 2
end
@@ -76,7 +75,6 @@ You can integrate this command to your test.
def test_99_kill
Capybara.reset!
`pidof Xvfb|xargs kill`
- Capybara::Session.new(:webkit)
end
end