oktobertest 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oktobertest.rb +2 -2
- data/test/fixtures/run_test_test.rb +15 -0
- data/test/oktobertest_test.rb +6 -0
- 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: 493545b54e8a7f371f28d790310575aea8c3d161
|
4
|
+
data.tar.gz: 07cb9f7238e13adf8ec15836a7783b3e478dbd9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0df644a849df6898bed00de683ca0d43773fad743476f25052ee1ed19aa1c3dc4be76c9fe76bfdca1c5e9a16e1fe236a9e58062449664074cf813ff58774d35e
|
7
|
+
data.tar.gz: 842cea94e1b0033f5015b9ae71f9cb09f0f123495158f91c7c4915d2063dc50d68930fc4694d370323b379efee33ec81123326779c10a72c5c310797663dbf50
|
data/lib/oktobertest.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module Oktobertest
|
2
|
-
VERSION = '0.5.
|
2
|
+
VERSION = '0.5.2'
|
3
3
|
|
4
4
|
TestFailed = Class.new StandardError
|
5
5
|
TestSkipped = Class.new StandardError
|
@@ -93,7 +93,7 @@ module Oktobertest
|
|
93
93
|
include Assertions
|
94
94
|
|
95
95
|
def initialize(name = nil, &block)
|
96
|
-
@name, @block = name, block
|
96
|
+
@name, @block = name.to_s, block
|
97
97
|
end
|
98
98
|
|
99
99
|
def run
|
data/test/oktobertest_test.rb
CHANGED
@@ -88,4 +88,10 @@ EOS
|
|
88
88
|
output = %x(T='run this' ruby -I lib:test test/fixtures/run_test_test.rb)
|
89
89
|
assert expected == output
|
90
90
|
end
|
91
|
+
|
92
|
+
test 'run only one test with a class name as name' do
|
93
|
+
expected = ".\n"
|
94
|
+
output = %x(T=Run::This ruby -I lib:test test/fixtures/run_test_test.rb)
|
95
|
+
assert expected == output
|
96
|
+
end
|
91
97
|
end
|