class Object
Public Instance Methods
new_task(task, options = {})
click to toggle source
# File spec/spec_helper.rb, line 28 def new_task task, options = {} task_hash = {} task_hash[task] = {} task_class = "New::Task::#{task.to_s.classify}".constantize task_class.any_instance.stub(:get_part).and_return('p') task_options = { tasks: task_hash, version: '1.2.3' }.merge(options) task_class.new task_options end
root(*paths)
click to toggle source
# File spec/spec_helper.rb, line 24 def root *paths paths.unshift(File.expand_path('../../', __FILE__)).compact.join '/' end