Sha256: c62a255da1aed858a5c9a824559720d0ec81af217263ce2cb7e7c1842da177b7
Contents?: true
Size: 537 Bytes
Versions: 5
Compression:
Stored size: 537 Bytes
Contents
Given /^(\d+) work units exist for that user$/ do |number| user = User.last client = Client.create!(:name => "Regis", :status => "Good") project = Project.create!(:name => "Haircutting", :client_id => client.id) ticket = Ticket.create!(:name => "Cut Hairs", :project_id => project.id, :description => "Do the cutting of the hairs.") number.to_i.times { WorkUnit.create!(:description => "Did the clipping and the cutting", :ticket_id => ticket.id, :hours => 8, :scheduled_at => "2010-10-01 12:00:00", :user_id => user.id) } end
Version data entries
5 entries across 5 versions & 1 rubygems