This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
win_coef = self.win(profile, scope).to_f/100 | |
avg_win_coef = self.average(profile, scope, :wins) | |
avg_lose_coef = self.average(profile, scope, :losses) | |
(win_coef * avg_win_coef) + ((100 - win_coef) * (-avg_lose_coef)).to_i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From http://github.com/jaymcgavren | |
# | |
# Save this as rcov.rake in lib/tasks and use rcov:all => | |
# to get accurate spec/feature coverage data | |
require 'cucumber/rake/task' | |
require 'spec/rake/spectask' | |
namespace :rcov do | |
Cucumber::Rake::Task.new(:cucumber) do |t| |