leap 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/leap.gemspec +1 -1
- data/lib/leap/deliberation.rb +7 -0
- data/test/helper.rb +1 -1
- data/test/test_leap.rb +10 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
data/leap.gemspec
CHANGED
data/lib/leap/deliberation.rb
CHANGED
data/test/helper.rb
CHANGED
data/test/test_leap.rb
CHANGED
@@ -9,6 +9,11 @@ class TestLeap < Test::Unit::TestCase
|
|
9
9
|
should 'still have a lucky number' do
|
10
10
|
assert_equal 0, @person.lucky_number
|
11
11
|
end
|
12
|
+
|
13
|
+
should 'naturally receive an International Psychics Association-compliant lucky number' do
|
14
|
+
@person.lucky_number
|
15
|
+
assert_equal [:ipa], @person.deliberations[:lucky_number].compliance
|
16
|
+
end
|
12
17
|
end
|
13
18
|
|
14
19
|
context "An aged person" do
|
@@ -34,6 +39,11 @@ class TestLeap < Test::Unit::TestCase
|
|
34
39
|
@person.lucky_number # make the decision
|
35
40
|
assert_equal({}, @person.deliberations[:lucky_number].reports.find{ |r| r.committee.name == :litmus }.conclusion)
|
36
41
|
end
|
42
|
+
|
43
|
+
should 'not receive an International Psychics Association-compliant lucky number unless he asks for it' do
|
44
|
+
@person.lucky_number
|
45
|
+
assert_equal [], @person.deliberations[:lucky_number].compliance
|
46
|
+
end
|
37
47
|
end
|
38
48
|
|
39
49
|
context "A clever aged person" do
|