spec/spec_helper.rb in rhoconnect-4.0.0.beta.10 vs spec/spec_helper.rb in rhoconnect-4.0.0.beta.12
- old
+ new
@@ -54,9 +54,20 @@
Dir["#{SPEC_PATH}/support/**/*.rb"].each { |f| require f }
ENV['RACK_ENV'] = 'test'
ERROR = '0_broken_object_id' unless defined? ERROR
+class Rhoconnect::Model::Base
+ def inject_result(result)
+ @result = result
+ end
+
+ def inject_tmpdoc(doctype)
+ @tmp_docname = doctype
+ @stash_size = 0
+ end
+end
+
module TestHelpers
def get_testapp_path
File.expand_path(File.join(File.dirname(__FILE__),'apps','rhotestapp'))
end