initial commit

This commit is contained in:
John Bintz 2011-09-08 23:31:33 -04:00
commit 5dba9177a0
8 changed files with 58 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.jhw-cache/

5
.travis.yml Normal file
View File

@ -0,0 +1,5 @@
before_script: "sh -e /etc/init.d/xvfb start"
script: "DISPLAY=:99.0 bundle exec rake jasmine:headless"
rvm:
- 1.9.2

2
Gemfile Normal file
View File

@ -0,0 +1,2 @@
gem 'jasmine-headless-webkit', :git => 'git://github.com/johnbintz/jasmine-headless-webkit.git'
gem 'rake', '0.9.2'

29
Gemfile.lock Normal file
View File

@ -0,0 +1,29 @@
GIT
remote: git://github.com/johnbintz/jasmine-headless-webkit.git
revision: 7bd689439728ad5deb77b1cf59917e437a0a5355
specs:
jasmine-headless-webkit (0.7.0)
coffee-script (>= 2.2)
jasmine-core (~> 1.1.beta)
multi_json
rainbow
GEM
specs:
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.1.2)
execjs (1.2.4)
multi_json (~> 1.0)
jasmine-core (1.1.0.rc4)
multi_json (1.0.3)
rainbow (1.1.1)
rake (0.9.2)
PLATFORMS
ruby
DEPENDENCIES
jasmine-headless-webkit!
rake (= 0.9.2)

5
Rakefile Normal file
View File

@ -0,0 +1,5 @@
require 'jasmine-headless-webkit'
Jasmine::Headless::Task.new
task :default => 'jasmine:headless'

View File

@ -0,0 +1,3 @@
class window.Test
yes: => true

View File

@ -0,0 +1,8 @@
spec_dir: 'spec/javascripts'
src_dir: 'public/javascripts'
src_files:
- 'test.coffee'
spec_files:
- 'test_spec.coffee'

View File

@ -0,0 +1,5 @@
describe 'Test', ->
it 'should be true', ->
test = new Test()
expect(test.yes()).toEqual(true)