apachecrunch 0.4 → 0.5

Sign up to get free protection for your applications and to get access to all the features.
data/test/test_entry.rb DELETED
@@ -1,28 +0,0 @@
1
- require 'test/stub'
2
-
3
- class TestEntry < Test::Unit::TestCase
4
- def setup
5
- @inst = ApacheCrunch::Entry.new({:derived => StubDerivationSourceElement})
6
- end
7
-
8
- def teardown
9
- @inst = nil
10
- end
11
-
12
- # Tests direct assignment of an element.
13
- def test_assign
14
- @inst[:bar] = "test_value"
15
- assert_equal(@inst[:bar], "test_value")
16
- end
17
-
18
- # Tests derivation of one element from another.
19
- def test_derive
20
- @inst[:derivation_source] = "source text"
21
- assert_equal(@inst[:derived], "derived from source text")
22
- end
23
-
24
- # Tests access to an absent element.
25
- def test_access_absent
26
- assert_nil(@inst[:nonexistent])
27
- end
28
- end