Skip to content

Instantly share code, notes, and snippets.

@abuiles
Created August 3, 2010 21:11
Show Gist options
  • Save abuiles/507161 to your computer and use it in GitHub Desktop.
Save abuiles/507161 to your computer and use it in GitHub Desktop.
it "should return the average price" do
account = Factory(:account)
task1 = Factory(:simple_task, :identifier => 'image_moderation', :price => '0.1', :account => account)
task2 = Factory(:simple_task, :identifier => 'image_moderation', :price => '0.1', :account => account)
debugger
Task.average_task_price('image_moderation',account).should == 0.1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment