bin/aipim in aipim-rails-0.0.11 vs bin/aipim in aipim-rails-0.0.15
- old
+ new
@@ -1,5 +1,13 @@
#!/usr/bin/env ruby
require 'aipim-rails'
-Parser.init("features/usuario.feature")
+path = File.expand_path(File.dirname(__FILE__))+"/../"
+
+if ARGV[0] == 'generate'
+ system('mkdir -p aipim')
+ system('mkdir -p aipim/screenshots')
+ system('cp '+path+'lib/screenshot.rb features/support/')
+else
+ Parser.init("features/usuario.feature")
+end