-
Notifications
You must be signed in to change notification settings - Fork 6
/
vampire_test.rb
41 lines (35 loc) · 887 Bytes
/
vampire_test.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
gem 'minitest'
require 'minitest/autorun'
require 'minitest/pride'
class VampireTest < Minitest::Test
def test_it_has_a_name
vampire = Vampire.new("Dracula")
assert_equal "Dracula", vampire.name
end
def test_it_is_named_something_else
skip
vampire = Vampire.new("Vladimir")
assert_equal "Vladimir", vampire.name
end
def test_it_keeps_a_pet_bat_by_default
skip
vampire = Vampire.new("Ruthven")
assert_equal "bat", vampire.pet
end
def test_it_can_have_other_pets
skip
vampire = Vampire.new("Varney", "fox")
assert_equal "fox", vampire.pet
end
def test_it_is_thirsty_by_default
skip
vampire = Vampire.new("Count von Count")
assert vampire.thirsty?
end
def test_it_is_not_thirsty_after_drinking
skip
vampire = Vampire.new("Elizabeth Bathory")
vampire.drink
refute vampire.thirsty?
end
end