Sha256: 17cd5e940406276cbec3ced22c00aeb95fded8ba3a4108b990e204af48816068

Contents?: true

Size: 793 Bytes

Versions: 5

Compression:

Stored size: 793 Bytes

Contents

module TaskMapper::Provider
  module Tester
    # The Tester Provider's Ticket class
    class Ticket < TaskMapper::Provider::Base::Ticket
      @system = :tester
      
      # You don't need to define an initializer, this is only here to initialize tester data
      def initialize(project_id, *options)
        data = {:id => rand(1000), :status => ['lol', 'rofl', 'lmao', 'lamo', 'haha', 'heh'][rand(6)],
          :priority => rand(10), :summary => 'Tickets ticket ticket ticket', :resolution => false,
          :created_at => Time.now, :updated_at => Time.now, :description => 'Ticket ticket ticket ticket laughing',
          :assignee => 'lol-man', :project_id => project_id}
        @system = :tester
        super(data.merge(options.first || {}))
      end
      
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
taskmapper-1.0.1 lib/taskmapper/tester/ticket.rb
taskmapper-1.0.0 lib/taskmapper/tester/ticket.rb
taskmapper-0.9.0 lib/taskmapper/tester/ticket.rb
taskmapper-0.8.1 lib/taskmapper/tester/ticket.rb
taskmapper-0.8.0 lib/taskmapper/tester/ticket.rb