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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42482b5cb0ebcacc00766b6ec0a0af714dae78df
4
- data.tar.gz: ac8f2b64a61f68f17e410365d7d14eb41138186b
3
+ metadata.gz: 493545b54e8a7f371f28d790310575aea8c3d161
4
+ data.tar.gz: 07cb9f7238e13adf8ec15836a7783b3e478dbd9a
5
5
  SHA512:
6
- metadata.gz: 2b359f4e6dbfedaae603373260af74a60a85a97f0a0aa824f957d25b0af39ff6a82cde3e5d3f6a8e618b504ebe7f9a8285aa5b8bf274adea55e7f07ad72a75d1
7
- data.tar.gz: 143d406c7e71d7484bad83f29dd858a98e1b10f53da2c9eab7db60849c0908933d50e2365c1c011375b6f506f2b06cab186a9af2c5978bea96601e6b78ae6fe2
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.1'
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
@@ -9,3 +9,18 @@ scope do
9
9
  assert false
10
10
  end
11
11
  end
12
+
13
+ module Run
14
+ class This
15
+ end
16
+ end
17
+
18
+ scope do
19
+ test Run::This do
20
+ assert true
21
+ end
22
+
23
+ test 'and not this' do
24
+ assert false
25
+ end
26
+ end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oktobertest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patricio Mac Adden