icu_ratings 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/spec/tournament_spec.rb +4 -0
- metadata +2 -2
data/VERSION.yml
CHANGED
data/spec/tournament_spec.rb
CHANGED
@@ -79,6 +79,10 @@ module ICU
|
|
79
79
|
lambda { @t.add_result(1, @p1, @p3, 'W') }.should raise_error(/inconsistent/)
|
80
80
|
lambda { @t.add_result(1, @p3, @p2, 'W') }.should raise_error(/inconsistent/)
|
81
81
|
end
|
82
|
+
|
83
|
+
it "players cannot have results against themselves" do
|
84
|
+
lambda { @t.add_result(1, @p1, @p1, 'W') }.should raise_error(/against.*themsel(f|ves)/)
|
85
|
+
end
|
82
86
|
end
|
83
87
|
|
84
88
|
context "#rate - corner case - tournament is empy" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: icu_ratings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Orr
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-16 00:00:00 +00:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|