Sha256: cd79d1cec9cf083f41677bff83de8813636a09276a4a56d64d88d11fe9ea8448
Contents?: true
Size: 488 Bytes
Versions: 7
Compression:
Stored size: 488 Bytes
Contents
require 'rspec' require 'leaderboard' Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| # Helper method to rank members in a leaderboard # # @param members_to_add [int] Number of members to add to the leaderboard. def rank_members_in_leaderboard(members_to_add = 5) 1.upto(members_to_add) do |index| @leaderboard.rank_member("member_#{index}", index, { :member_name => "Leaderboard member #{index}" }) end end end
Version data entries
7 entries across 7 versions & 1 rubygems