processing_fixtures.rb 715 Bytes
require File.dirname(__FILE__) + '/process_time_fixtures'
require File.dirname(__FILE__) + '/throwable_fixtures'

class ProcessingFixtures

  def self.processing
    Kalibro::Processing.new processing_hash  
  end
 
  def self.processing_hash
    {
      :id => "31",
      :date => '2011-10-20T18:26:43.151+00:00',
      :state => 'READY',
      :process_time => [ProcessTimeFixtures.process_time_hash],
      :results_root_id => "13"
    }
  end

  def self.processing_with_error_hash
    {
      :id => "31",
      :date => '2011-10-20T18:26:43.151+00:00',
      :state => 'ERROR',
      :process_time => [ProcessTimeFixtures.process_time_hash],
      :error => ThrowableFixtures.throwable_hash
    }
  end

end