features/step_definitions/jasnode-steps.rb in jasnode-0.2.0.0 vs features/step_definitions/jasnode-steps.rb in jasnode-0.4.0.0
- old
+ new
@@ -1,18 +1,19 @@
# Copyright (c) 2010 Cory Ondrejka. All rights reserved.
# See MIT.LICENSE for licensing details.
+require 'fileutils.rb'
+
JASNODE_BIN = File.join(File.dirname(__FILE__), '..', '..', 'bin')
Given /^I am ready to work$/ do
end
When /^I give the jasnode command init "([^\"]*)"$/ do |projectname|
@name = projectname
- %x[#{JASNODE_BIN}/jasnode init #{@name}].should == "Project template initialized at `#{@name}'\n"
+ %x[#{JASNODE_BIN}/jasnode --trace init #{@name}].should == "Project template initialized at `#{@name}'\n"
end
Then /^I should have a properly populated "([^\"]*)" directory$/ do |arg1|
- require "ftools"
File.exist?("#{@name}").should == true
File.exist?("#{@name}/lib").should == true
File.exist?("#{@name}/spec").should == true
File.exist?("#{@name}/bin").should == true
File.exist?("#{@name}/Rakefile").should == true