Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (23 sloc) 711 Bytes
require 'rspec'
SILVERWARE_DIR = File.expand_path("..", File.realdirpath(File.dirname(__FILE__))) unless defined?(SILVERWARE_DIR)
def SILVERWARE_DIR(*paths) File.join(SILVERWARE_DIR, *paths); end
require 'chef/node'
require 'chef/resource_collection'
require 'chef/providers'
require 'chef/resources'
require 'chef/mixin/params_validate'
class Chef
class Resource
def self.json_create(o)
resource = self.new(o["instance_vars"]["name"])
o["instance_vars"].each do |k,v|
resource.instance_variable_set("@#{k}".to_sym, v)
end
resource
end
end
end
Dir[SILVERWARE_DIR("spec/spec_helper/*.rb")].each {|f| require f}
# Configure rspec
RSpec.configure do |config|
end
Something went wrong with that request. Please try again.