Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Commit

Permalink
Cleanup Rakefile
Browse files Browse the repository at this point in the history
- Performance specs copy examples
- Remove jasmine:server (it probably shouldn't have been in here anyways)
  • Loading branch information
Gregg Van Hove and Tim Jarratt committed Oct 1, 2013
1 parent 1e1e7bc commit ffc562a
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions Rakefile
Expand Up @@ -20,28 +20,12 @@ RSpec::Core::RakeTask.new(:performance_specs) do |t|
end

task :spec => %w(jasmine:copy_examples_to_gem)
task :performance_specs => %w(jasmine:copy_examples_to_gem)

task :default => :spec

namespace :jasmine do
require 'jasmine-core'
task :server do
Jasmine.configure do |config|
root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
config.src_dir = File.join(root, 'src')
config.spec_dir = Jasmine::Core.path
config.spec_files = lambda { (Jasmine::Core.html_spec_files + Jasmine::Core.core_spec_files).map {|f| File.join(config.spec_dir, f) } }
config.server_port = ENV['JASMINE_PORT'] || 8888
end

config = Jasmine.config

server = Jasmine::Server.new(config.port(:server), Jasmine::Application.app(config))
server.start

puts 'your tests are here:'
puts " http://localhost:#{config.port(:server)}/"
end

desc 'Copy examples from Jasmine JS to the gem'
task :copy_examples_to_gem do
Expand All @@ -63,6 +47,3 @@ namespace :jasmine do
end
end

desc 'Run specs via server'
task :jasmine => %w(jasmine:server)

0 comments on commit ffc562a

Please sign in to comment.