features/support/env.rb in berkshelf-0.4.0.rc3 vs features/support/env.rb in berkshelf-0.4.0.rc4

- old
+ new

@@ -1,8 +1,9 @@ require 'rubygems' require 'bundler' require 'spork' +require "json_spec/cucumber" Spork.prefork do require 'rspec' require 'pp' require 'aruba/cucumber' @@ -48,9 +49,14 @@ app_root_path.join('spec/tmp') end def fixtures_path app_root_path.join('spec/fixtures') + end + + # Set the output json_spec will parse for testing JSON responses + def last_json + all_output end end Spork.each_run do Berkshelf::RSpec::Knife.load_knife_config(File.join(APP_ROOT, 'spec/knife.rb'))