Skip to content

About

minimal example of using [phantomjs] with [qunit]

$ phantomjs run-qunit.js file://`pwd`/test.html
'waitFor()' finished in 200ms.
Tests completed in 21 milliseconds.
5 tests of 5 passed, 0 failed.

Installation

:Unite file
1) Expecting to fuzzy match config/database.yml (as Command-T does)
Sources: file
> dbyml
- [new file]dbyml
Sources: file
$ rake routes|ruby -ne '$_ =~ /^\s+([a-z_]+)/; puts "%-2s %s" % [$1.to_s.size, $1.to_s.gsub(/./,"*")]'|grep -v '^0'|sort -unr
92 ********************************************************************************************
91 *******************************************************************************************
90 ******************************************************************************************
89 *****************************************************************************************
88 ****************************************************************************************
87 ***************************************************************************************
85 *************************************************************************************
82 **********************************************************************************
whose-bug$ bundle exec ruby test.rb
{
}
" Modularized configuration for vim
" Randy Morris <randy.morris@archlinux.us>
" Plugins
if v:version < 700
finish
endif
" {{{ Vundle setup
class Cell
end
class World
def initialize
@x = 50
@y = 50
end

Getting started

First add your twitter username and password. Then server.rb and once it's started open websocket.html in your browser. You should see some tweets appear. If not take a look at the javascript console.

What's new

Bundle! command

Bundle! 'my_plugin'

instructs Vundle that

  1. this plugin should not be synchronized/cloned
  2. it's located in bundles/my_plugin
syntax on
set nocompatible " Unset compatibility with VI, it's 2011!
set wildmenu
set wildmode=list:longest " make cmdline tab completion similar to bash
set backup " Activate backup stuff
set backupdir=~/.vim/backup
set directory=~/.vim/tmp
set showmatch " Show matching brackets
Something went wrong with that request. Please try again.