jasmine/examples/ruby/Rakefile
Christian Williams & Kim Eric Mittler 8ba804e299 Change url from /run.html to /.
2009-09-02 12:51:39 -07:00

27 lines
642 B
Ruby

namespace :test do
desc "Run continuous integration tests"
require "spec"
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:ci) do |t|
t.spec_opts = ["--color", "--format", "specdoc"]
t.spec_files = ["spec/jasmine_spec.rb"]
end
end
desc "Run specs via server"
task :jasmine_server do
require File.expand_path(File.join(File.dirname(__FILE__), "../../contrib/ruby/jasmine_spec_builder"))
dir_mappings = {
"/spec" => 'spec'
}
spec_files = Dir.glob("spec/**/*[Ss]pec.js")
puts "your tests are here:"
puts " http://localhost:8888/"
Jasmine::SimpleServer.start(8888, spec_files, dir_mappings)
end