Battlefield 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/battlefield_test.rb +16 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa18572f350de68cb43a22f90c7eac533233b891
|
4
|
+
data.tar.gz: 0d04d567322d981119b98d3dafec7bf3aea9cd85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a197d8ae9ad17ddd2dbceacd306d3eb588231e9fef78993a5a382ba8a2db6ded95276f6ef0625533e598120b5243390b71a96f3f5332b5337803568da96bc178
|
7
|
+
data.tar.gz: cd11f3803b989d22b40c50d42b349b9de626d2a935b576978bfd0372ab00b0fa1c9d0600cd8a77fd3991a247a9863466aba89a13a588d6c0b56045ef6c0021de
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
require_relative 'battlefield.rb'
|
3
|
+
class TestCreature < Test::Unit::TestCase
|
4
|
+
def test_inititialize
|
5
|
+
assert_raise {Creature.new}
|
6
|
+
assert_nothing_raised {Creature.new 5}
|
7
|
+
end
|
8
|
+
def test_health
|
9
|
+
assert_respond_to Creature(), :health
|
10
|
+
assert_equal Creature().health, 1
|
11
|
+
end
|
12
|
+
def testdamage
|
13
|
+
assert_respond_to Creature(), :damage
|
14
|
+
assert_equal Creature().damage(1), 0
|
15
|
+
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Battlefield
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zachary Perlmutter
|
@@ -18,6 +18,7 @@ extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- lib/battlefield.rb
|
21
|
+
- lib/battlefield_test.rb
|
21
22
|
homepage: https://rubygems.org/gems/Battlefield
|
22
23
|
licenses:
|
23
24
|
- MIT
|
@@ -42,4 +43,5 @@ rubygems_version: 2.3.0
|
|
42
43
|
signing_key:
|
43
44
|
specification_version: 4
|
44
45
|
summary: Allows your objects to battle
|
45
|
-
test_files:
|
46
|
+
test_files:
|
47
|
+
- lib/battlefield_test.rb
|