1 namespace :test do 2 desc "Run specs via server" 3 task :jasmine do 4 port = ENV['JASMINE_PORT'] || 8888 5 puts "your tests are here:" 6 puts " http://localhost:#{port}/" 7 Jasmine::Server.new(port).start 8 end 9 end 10