rshighscores 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/rshighscores.rb +1 -1
- data/lib/rshighscores/stats.rb +2 -1
- data/spec/lookup_spec.rb +17 -1
- data/spec/spec_helper.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16a49fc6f1b6ed8498727f9049c63d84a6d880e6
|
4
|
+
data.tar.gz: 34abff3b83241879be64832f11cecde8ff197fb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b54eb879b6c9b8e95e676fb1fe398878fe174c2ca1c99821573ed8ab523232ff285d18bc3c238db6443d73bf668f87bda420af6689861b1687a9579d1f23fbb5
|
7
|
+
data.tar.gz: affa06907703a651865bd63b3bc2b931f1eb2de36612bd9049738af06819a41bf5d83a48fdd482b86f02f4b18183073e7543af7b33d19e3ddb30d25d8ad75f97
|
data/Rakefile
CHANGED
data/lib/rshighscores.rb
CHANGED
data/lib/rshighscores/stats.rb
CHANGED
data/spec/lookup_spec.rb
CHANGED
@@ -77,9 +77,25 @@ describe RsHighscores::Stats do
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
80
|
+
it "skill_names output" do
|
81
|
+
@stats.skill_names.should eq(%w(Overall Attack Defence Strength
|
82
|
+
Hitpoints Ranged Prayer Magic
|
83
|
+
Cooking Woodcutting Fletching Fishing
|
84
|
+
Firemaking Crafting Smithing Mining
|
85
|
+
Herblore Agility Thieving Slayer
|
86
|
+
Farming Runecrafting Hunter Construction
|
87
|
+
Summoning Dungeoneering Divination))
|
88
|
+
end
|
89
|
+
|
90
|
+
it "attempting to call a skill name that doesn't exist" do
|
91
|
+
lambda {
|
92
|
+
@stats.not_a_skill
|
93
|
+
}.should raise_error
|
94
|
+
end
|
95
|
+
|
80
96
|
it "missing method call" do
|
81
97
|
@stats.skill_names.each do |name|
|
82
|
-
@stats.send(name.
|
98
|
+
@stats.send(name.downcase).should eq(@stats[name])
|
83
99
|
end
|
84
100
|
end
|
85
101
|
end
|
data/spec/spec_helper.rb
CHANGED