First crack at jasmine-ruby
This commit is contained in:
34
bin/jasmine
Executable file
34
bin/jasmine
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/env ruby
|
||||
require File.expand_path(File.join(File.dirname(__FILE__), "..", "lib", "jasmine-ruby", "jasmine_helper.rb"))
|
||||
|
||||
|
||||
if ARGV[0] == 'server'
|
||||
require 'rubygems'
|
||||
require File.expand_path(File.join(JasmineHelper.jasmine_root, "contrib/ruby/jasmine_spec_builder"))
|
||||
|
||||
puts "your tests are here:"
|
||||
puts " http://localhost:8888/run.html"
|
||||
JASMINE_SPEC_DIR = ARGV[1] || File.join(`pwd`.chomp, "spec")
|
||||
Jasmine::SimpleServer.start(8888,
|
||||
lambda { JasmineHelper.spec_file_urls },
|
||||
JasmineHelper.dir_mappings)
|
||||
end
|
||||
#
|
||||
#namespace :jasmine do
|
||||
# desc "Start jasmine server"
|
||||
# task :server do
|
||||
# start_jasmine_server
|
||||
# end
|
||||
#
|
||||
# desc "Run continuous integration tests"
|
||||
# task :ci do
|
||||
# require "spec"
|
||||
# require 'spec/rake/spectask'
|
||||
# ENV["RAILS_ROOT"] = RAILS_ROOT
|
||||
# Spec::Rake::SpecTask.new(:lambda_ci) do |t|
|
||||
# t.spec_opts = ["--color", "--format", "specdoc"]
|
||||
# t.spec_files = [File.expand_path(File.join(File.dirname(__FILE__), "..", "lib", "jasmine_spec.rb"))]
|
||||
# end
|
||||
# Rake::Task[:lambda_ci].invoke
|
||||
# end
|
||||
#end
|
||||
Reference in New Issue
Block a user