earnings.rb 227 Bytes
Newer Older
1
2
3
4
5
6
7
8
FactoryGirl.define do
  factory :earning do
    points { [1,10,50,150].shuffle.first}
    association :hacker, :factory => :hacker
    association :user, :factory => :hacker
    association :quest, :factory => :quest
  end
end