completecrap 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/completecrap.rb +6 -2
- data/test/test_completecrap.rb +12 -3
- metadata +1 -1
data/History.txt
CHANGED
data/lib/completecrap.rb
CHANGED
data/test/test_completecrap.rb
CHANGED
@@ -1,8 +1,17 @@
|
|
1
1
|
require "test/unit"
|
2
2
|
require "completecrap"
|
3
3
|
|
4
|
-
class
|
5
|
-
def
|
6
|
-
|
4
|
+
class TestBeforeIncludeCompleteCrap < Test::Unit::TestCase
|
5
|
+
def test_before_include
|
6
|
+
assert !defined?(HAHA)
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
class TestAfterIncludeCompleteCrap
|
11
|
+
|
12
|
+
include CompleteCrap
|
13
|
+
|
14
|
+
def test_after_include
|
15
|
+
assert defined?(HAHA)
|
7
16
|
end
|
8
17
|
end
|