Sha256: 7073efda319e3e3a435344f35b31a8bddaeec2506f5323cf6b743c2520427d36

Contents?: true

Size: 1.36 KB

Versions: 16

Compression:

Stored size: 1.36 KB

Contents

$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__))
$LOAD_PATH.unshift File.expand_path("#{File.dirname(__FILE__)}/lib")
require "bundler"
Bundler::GemHelper.install_tasks

require "jasmine"
if Jasmine::Dependencies.rspec2?
  require 'rspec'
  require 'rspec/core/rake_task'
else
  require 'spec'
  require 'spec/rake/spectask'
end

desc "Run all examples"
if Jasmine::Dependencies.rspec2?
  RSpec::Core::RakeTask.new(:spec) do |t|
    t.pattern = 'spec/**/*_spec.rb'
  end
else
  Spec::Rake::SpecTask.new('spec') do |t|
    t.spec_files = FileList['spec/**/*.rb']
  end
end

task :spec => ['jasmine:copy_examples_to_gem']

task :default => :spec

namespace :jasmine do
  require "jasmine-core"
  require './spec/jasmine_self_test_config'
  task :server do
    port = ENV['JASMINE_PORT'] || 8888
    JasmineSelfTestConfig.new.start_server(port)

    puts "your tests are here:"
    puts "  http://localhost:#{port}/"
  end

  desc "Copy examples from Jasmine JS to the gem"
  task :copy_examples_to_gem do
    require "fileutils"

    # copy jasmine's example tree into our generator templates dir
    FileUtils.rm_r('generators/jasmine/templates/jasmine-example', :force => true)
    FileUtils.cp_r(File.join(Jasmine::Core.path, 'example'), 'generators/jasmine/templates/jasmine-example', :preserve => true)
  end
end

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

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
rally-jasmine-1.2.0.18 Rakefile
rally-jasmine-1.2.0.12 Rakefile
rally-jasmine-1.2.0.11 Rakefile
rally-jasmine-1.2.0.10 Rakefile
rally-jasmine-1.2.0.8 Rakefile
jasmine-1.3.0 Rakefile
rally-jasmine-1.2.0.7 Rakefile
rally-jasmine-1.2.0.6 Rakefile
rally-jasmine-1.2.0.5 Rakefile
rally-jasmine-1.2.0.4 Rakefile
rally-jasmine-1.2.0.3 Rakefile
rally-jasmine-1.2.0.2 Rakefile
rally-jasmine-1.2.0.1 Rakefile
rally-jasmine-1.2.0 Rakefile
jasmine-1.2.1 Rakefile
jasmine-1.2.0 Rakefile