Sha256: 581fca8973fbf10089111c508d638ae507f530a8f39388fbcb3f76bf3a4a3fae

Contents?: true

Size: 876 Bytes

Versions: 9

Compression:

Stored size: 876 Bytes

Contents

namespace :jasmine do
  task :require do
    require 'jasmine'
  end

  desc "Run continuous integration tests"
  task :ci => "jasmine:require" do
    require "spec"
    require 'spec/rake/spectask'

    Spec::Rake::SpecTask.new(:jasmine_continuous_integration_runner) do |t|
      t.spec_opts = ["--color", "--format", "specdoc"]
      t.verbose = true
      t.spec_files = ['spec/javascripts/support/jasmine_runner.rb']
    end
    Rake::Task["jasmine_continuous_integration_runner"].invoke
  end

  task :server => "jasmine:require" do
    jasmine_config_overrides = 'spec/javascripts/support/jasmine_config.rb'
    require jasmine_config_overrides if File.exists?(jasmine_config_overrides)

    puts "your tests are here:"
    puts "  http://localhost:8888/"

    Jasmine::Config.new.start_server
  end
end

desc "Run specs via server"
task :jasmine => ['jasmine:server']

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
edgecase-jasmine-1.0.1.1 lib/jasmine/tasks/jasmine.rake
jasmine-1.0.1 lib/jasmine/tasks/jasmine.rake
jasmine-1.0.0 lib/jasmine/tasks/jasmine.rake
jasmine-0.11.1.0 lib/jasmine/tasks/jasmine.rake
jasmine-0.11.0.0 generators/jasmine/templates/lib/tasks/jasmine.rake
jasmine-0.10.4.0 generators/jasmine/templates/lib/tasks/jasmine.rake
jasmine-0.10.3.5 generators/jasmine/templates/lib/tasks/jasmine.rake
jasmine-0.10.3.4 generators/jasmine/templates/lib/tasks/jasmine.rake
jasmine-0.10.3.3 generators/jasmine/templates/lib/tasks/jasmine.rake