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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 72c72a5a6e49e971da823e50edfb9e10378b9955
4
- data.tar.gz: ee42b8542953dd18c27940c1d2afc53d6159ee75
3
+ metadata.gz: 42482b5cb0ebcacc00766b6ec0a0af714dae78df
4
+ data.tar.gz: ac8f2b64a61f68f17e410365d7d14eb41138186b
5
5
  SHA512:
6
- metadata.gz: 0602f4d94e75dea0b903257dd53c616f152acd62a8ac368f8e01cf010e5bfac351a86bcefa86ea9362995318ac6339aa1fab4fe1e30b1ac8b94de4c08e353574
7
- data.tar.gz: 8bb32802ff543d825742bc64871c471fc7a65a62ab61722915cd03fc293d9795e033b74566068a9e25aaad2226c351576ba3279e9924891454dc9585056ed3d2
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.0'
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
 
@@ -19,3 +19,18 @@ scope 'and not this' do
19
19
  assert false
20
20
  end
21
21
  end
22
+
23
+ module Run
24
+ class This
25
+ end
26
+ end
27
+
28
+ scope Run::This do
29
+ test 'run this' do
30
+ assert true
31
+ end
32
+
33
+ test 'and this' do
34
+ assert true
35
+ end
36
+ end
@@ -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.0
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-08-30 00:00:00.000000000 Z
11
+ date: 2014-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler