booby 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/booby/version.rb +1 -1
- data/test/parser_test.rb +9 -9
- data/test/version_test.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06f7c94d824d9803e5c8ad03d75eefce4954dcbf
|
4
|
+
data.tar.gz: 900c9f98cc78c01c97ea60151c18e897444f9339
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a304f09545a47e881d10e9e3d44435f34dd1ea0dce335f42a8f4aebf77aba54ff0e516ae17d5bb27932f2ab033243f48e8a05319ed05f263b5c83faa6f575853
|
7
|
+
data.tar.gz: 5d3e85f92ba491f5e47a829dcd3128ef29584a90675dd6f4809f8eefcf602b0681c088a2f8d622c2e9046787c5cfd11a09dc0ebf74898a3487de9bde28851eac
|
data/lib/booby/version.rb
CHANGED
data/test/parser_test.rb
CHANGED
@@ -223,15 +223,6 @@ class TestParser < Minitest::Test
|
|
223
223
|
end
|
224
224
|
end
|
225
225
|
|
226
|
-
def test_file_opening
|
227
|
-
testfile = "./tmp/test.conf"
|
228
|
-
File.open(testfile, "w+") { |f| f.puts(SIMPLE_FILE) }
|
229
|
-
b = Booby.open(testfile)
|
230
|
-
parsed = b.parse_with(SimpleProcessor)
|
231
|
-
assert_equal %w{1 2 3}, parsed.foo
|
232
|
-
assert_equal %w{1 2}, parsed.bar
|
233
|
-
end
|
234
|
-
|
235
226
|
def test_strict_arity_checking_fail
|
236
227
|
b = Booby.prepare(WRONG_ARITY_FILE_1)
|
237
228
|
assert_raises Booby::InvalidNumberOfParametersError do
|
@@ -253,4 +244,13 @@ class TestParser < Minitest::Test
|
|
253
244
|
assert_equal %w{1 2 3 4}, parsed.bar
|
254
245
|
assert_equal %w{1 2 3 4}, parsed.bar
|
255
246
|
end
|
247
|
+
|
248
|
+
def test_file_opening
|
249
|
+
testfile = File.join($test_tmp_dir, "test.conf")
|
250
|
+
File.open(testfile, "w+") { |f| f.puts(SIMPLE_FILE) }
|
251
|
+
b = Booby.open(testfile)
|
252
|
+
parsed = b.parse_with(SimpleProcessor)
|
253
|
+
assert_equal %w{1 2 3}, parsed.foo
|
254
|
+
assert_equal %w{1 2}, parsed.bar
|
255
|
+
end
|
256
256
|
end
|
data/test/version_test.rb
CHANGED