Permalink
Browse files

Use jasmine-headless-webkit

  • Loading branch information...
1 parent b662476 commit 95e9278b9cbbeaca9631ddb8a88cfd0256c0d660 @matthieua matthieua committed Jul 7, 2012
View
@@ -1,2 +1,3 @@
.DS_Store
Gemfile.lock
+.jhw-cache/
View
@@ -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
@@ -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

0 comments on commit 95e9278

Please sign in to comment.