I've been using capybara to test a small web app that uses EventSource. I ran into some issues with headless testing.
visit 'http://localhost:9292'- selenium/firefox works just fine
| # NAP { | |
| umask 0022 | |
| export PATH="/__nap/nap/bin:$PATH" NAPRC=/__nap/cfg/naprc | |
| # } NAP | |
| # FELIX { | |
| for _path in \ |
| # Gemfile: | |
| # gem 'bcrypt-ruby' | |
| # | |
| # config/initializers/comfortable_mexican_sofa.rb: | |
| # config.admin_auth = 'ComfortableMexicanSofa::HttpAuthBCrypt' | |
| # ComfortableMexicanSofa::HttpAuthBCrypt.username = 'myname' | |
| # ComfortableMexicanSofa::HttpAuthBCrypt.password = BCrypt::Password.new '...hash...' | |
| require 'bcrypt' |
| ruby -e 'puts STDIN.lines.with_index.reduce(nil) { |x,(l,i)| rand(i+1) < 1 ? l : x }' <<< $'foo\nbar\nbaz' |
| ruby -rjson -e 'puts JSON.pretty_generate(JSON.load(STDIN))' <<< '{ "foo": 99, "bar": "baz" }' |
| set modelines=1 | e | set modelines=0 |
I installed Debian (wheezy) on my MacBook (2008) w/o X (yet). During boot, the screen would go blank. I tried nomodeset and many other things, but finally this one worked:
video=i915
| deb http://ftp.nl.debian.org/debian/ testing main contrib | |
| deb-src http://ftp.nl.debian.org/debian/ testing main contrib | |
| deb http://security.debian.org/ testing/updates main contrib | |
| deb-src http://security.debian.org/ testing/updates main contrib | |
| deb http://ftp.nl.debian.org/debian/ testing-updates main contrib | |
| deb-src http://ftp.nl.debian.org/debian/ testing-updates main contrib | |