spec/thor_spec.rb in datashift_spree-0.1.0 vs spec/thor_spec.rb in datashift_spree-0.2.0

- old
+ new

@@ -13,11 +13,10 @@ require File.dirname(__FILE__) + '/spec_helper' describe 'Thor high level command line tasks' do before(:all) do - #DataShift::load_commands DataShift::SpreeHelper::load_commands end before(:each) do end @@ -49,10 +48,11 @@ it "should be able to import Product through import CLI", :fail => true do x = Thread.new { run_in( spree_sandbox_path() ) do stdout = capture(:stdout){ - Thor::Runner.start(["datashift:spree:products", '-i', ifixture_file('SpreeProducts.xls')]) + #Thor::Runner.start(["datashift:spree:products", '-i', ifixture_file('SpreeProducts.xls')]) + system("bundle exec thor datashift:spree:products -i #{ifixture_file('SpreeProducts.xls')}") } puts stdout end } x.join \ No newline at end of file