Sha256: 75ff3384d860499c35b7249312b02aabfadba60a63443206a5955bffdae50326
Contents?: true
Size: 1.34 KB
Versions: 2
Compression:
Stored size: 1.34 KB
Contents
require File.expand_path(File.join(File.dirname(__FILE__), %w[.. .. .. spec_helper])) require JsdocHelper.path(%w(features support file_helper)) module JsdocHelper module Rake class Task describe Runner do include FileHelper before do @r = Runner.new @approot = JsdocHelper.path FileUtils.rm_rf working_dir FileUtils.mkdir working_dir create_dir('lib') create_file('lib/test.js') end it "should work with FileUtils and FileHelper the way I expect" do in_working_dir do `pwd`.should == "#{@approot}test/tmp\n" end end it "should have a useful default command with files" do in_working_dir do @r.command.should == "java -jar #{@approot}ext/jsdoc-toolkit/jsrun.jar #{@approot}ext/jsdoc-toolkit/app/run.js lib/test.js -t=#{@approot}ext/jsdoc-toolkit/templates/jsdoc -d=doc" end end it "should output a 'using' string when its using a different toolkit" do @r[:toolkit] = '../ext/jsdoc-toolkit' in_working_dir do output = quietly { @r.run :return_string => true } output.should =~ /using (.*)jsdoc-toolkit/ end end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
quentonc-jsdoc_helper-0.0.2 | spec/jsdoc_helper/rake/task/runner_spec.rb |
ragaskar-jsdoc_helper-0.0.2.1 | spec/jsdoc_helper/rake/task/runner_spec.rb |