Fixes for jasmine rake test:ci

This commit is contained in:
ragaskar 2009-08-26 22:41:19 -07:00
parent 7a446d53c0
commit e8d582600c
2 changed files with 24 additions and 23 deletions

View File

@ -41,14 +41,17 @@ namespace :test do
require "spec"
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:ci) do |t|
Rake::Task['build'].invoke
task :ci => :build do
Spec::Rake::SpecTask.new(:lambda_ci) do |t|
t.spec_opts = ["--color", "--format", "specdoc"]
t.spec_files = ["spec/jasmine_spec.rb"]
end
Rake::Task[:lambda_ci].invoke
end
end
desc "Run jasmine tests via server"
task :jasmine_server do
require File.expand_path(File.join(File.dirname(__FILE__), "contrib/ruby/jasmine_spec_builder"))
@ -66,4 +69,3 @@ namespace :test do
Jasmine::SimpleServer.start(8888, includes + spec_files, dir_mappings)
end
end

View File

@ -87,7 +87,6 @@ module Jasmine
mappings.each do |from, to|
config[from] = Rack::File.new(to)
end
p mappings
app = Rack::URLMap.new(config)