oktobertest 0.5.0 → 0.5.1
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_scope_test.rb +15 -0
- data/test/oktobertest_test.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42482b5cb0ebcacc00766b6ec0a0af714dae78df
|
4
|
+
data.tar.gz: ac8f2b64a61f68f17e410365d7d14eb41138186b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b359f4e6dbfedaae603373260af74a60a85a97f0a0aa824f957d25b0af39ff6a82cde3e5d3f6a8e618b504ebe7f9a8285aa5b8bf274adea55e7f07ad72a75d1
|
7
|
+
data.tar.gz: 143d406c7e71d7484bad83f29dd858a98e1b10f53da2c9eab7db60849c0908933d50e2365c1c011375b6f506f2b06cab186a9af2c5978bea96601e6b78ae6fe2
|
data/lib/oktobertest.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module Oktobertest
|
2
|
-
VERSION = '0.5.
|
2
|
+
VERSION = '0.5.1'
|
3
3
|
|
4
4
|
TestFailed = Class.new StandardError
|
5
5
|
TestSkipped = Class.new StandardError
|
@@ -48,7 +48,7 @@ module Oktobertest
|
|
48
48
|
|
49
49
|
class Scope
|
50
50
|
def initialize(name = nil, &block)
|
51
|
-
@name, @block = name, block
|
51
|
+
@name, @block = name.to_s, block
|
52
52
|
@setup, @teardown = [], []
|
53
53
|
end
|
54
54
|
|
data/test/oktobertest_test.rb
CHANGED
@@ -77,6 +77,12 @@ EOS
|
|
77
77
|
assert expected == output
|
78
78
|
end
|
79
79
|
|
80
|
+
test 'run only one scope with a class name as name' do
|
81
|
+
expected = "..\n"
|
82
|
+
output = %x(S=Run::This ruby -I lib:test test/fixtures/run_scope_test.rb)
|
83
|
+
assert expected == output
|
84
|
+
end
|
85
|
+
|
80
86
|
test 'run only one test' do
|
81
87
|
expected = ".\n"
|
82
88
|
output = %x(T='run this' ruby -I lib:test test/fixtures/run_test_test.rb)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oktobertest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patricio Mac Adden
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|