Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use jasmine-headless-webkit

  • Loading branch information...
commit 95e9278b9cbbeaca9631ddb8a88cfd0256c0d660 1 parent b662476
@matthieua matthieua authored
View
1  .gitignore
@@ -1,2 +1,3 @@
.DS_Store
Gemfile.lock
+.jhw-cache/
View
3  Gemfile
@@ -4,8 +4,9 @@ gem 'rake'
gem 'jasmine'
group :development do
+ gem 'jasmine-headless-webkit'
gem 'guard'
- gem 'guard-jasmine'
gem 'guard-coffeescript'
+ gem 'guard-jasmine-headless-webkit'
gem 'rb-fsevent'
end
View
18 Guardfile
@@ -1,15 +1,9 @@
-# A sample Guardfile
-# More info at https://github.com/guard/guard#readme
+# CoffeeScript compilation
+guard 'coffeescript', :input => 'js', :output => 'js'
+guard 'coffeescript', :input => 'spec/coffeescripts', :output => 'spec/javascripts'
-guard 'coffeescript', :output => 'js' do
- watch /^js\/.*[.]coffee/
-end
-
-guard 'coffeescript', :output => 'spec/javascripts' do
- watch /^spec\/javascripts\/.*[.]coffee/
-end
-
-guard 'jasmine', :jasmine_url => 'http://localhost:8888/' do
- watch(%r{spec/javascripts/.+Spec\.coffee$}) { "spec/javascripts" }
+# Jasmine tests suite
+guard 'jasmine-headless-webkit' do
+ watch(%r{spec/coffeescripts/.+Spec\.coffee$}) { "spec/javascripts" }
watch(%r{js/(.+)\.coffee$}) { "spec/javascripts" }
end
View
0  spec/javascripts/PluginSpec.coffee → spec/coffeescripts/PluginSpec.coffee
File renamed without changes
View
0  spec/javascripts/helpers/SpecHelper.coffee → spec/coffeescripts/helpers/SpecHelper.coffee
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.