initial commit
This commit is contained in:
commit
5dba9177a0
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.jhw-cache/
|
5
.travis.yml
Normal file
5
.travis.yml
Normal 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
2
Gemfile
Normal 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
29
Gemfile.lock
Normal 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
5
Rakefile
Normal file
@ -0,0 +1,5 @@
|
||||
require 'jasmine-headless-webkit'
|
||||
|
||||
Jasmine::Headless::Task.new
|
||||
|
||||
task :default => 'jasmine:headless'
|
3
public/javascripts/test.coffee
Normal file
3
public/javascripts/test.coffee
Normal file
@ -0,0 +1,3 @@
|
||||
class window.Test
|
||||
yes: => true
|
||||
|
8
spec/javascripts/support/jasmine.yml
Normal file
8
spec/javascripts/support/jasmine.yml
Normal file
@ -0,0 +1,8 @@
|
||||
spec_dir: 'spec/javascripts'
|
||||
src_dir: 'public/javascripts'
|
||||
|
||||
src_files:
|
||||
- 'test.coffee'
|
||||
spec_files:
|
||||
- 'test_spec.coffee'
|
||||
|
5
spec/javascripts/test_spec.coffee
Normal file
5
spec/javascripts/test_spec.coffee
Normal file
@ -0,0 +1,5 @@
|
||||
describe 'Test', ->
|
||||
it 'should be true', ->
|
||||
test = new Test()
|
||||
expect(test.yes()).toEqual(true)
|
||||
|
Loading…
Reference in New Issue
Block a user