rutema 2.0.0.pre6 → 2.0.0.pre7

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: 20b45ee5c8f761a44085c7d0632267675b2093b3
4
- data.tar.gz: d3674c7a843301a2553d421de1ef76ff446db8e5
3
+ metadata.gz: 3ec26da12bbbd9a99aa0e244a2faa8e197e6243b
4
+ data.tar.gz: 19e2e19a6e820bad2d0615b05dc97a13eff8dc6e
5
5
  SHA512:
6
- metadata.gz: 8ac09bb9530131de9d056ffe74c18b823bb0af13d1a9e431f77ecfff13f4d8c091d9b75e96f2aa81e50af794732ae312bdb2c8b5e24eca8ea6258fb520e84a71
7
- data.tar.gz: 682084e03f22424cc72ecf81dc906f83802e980a08edaca90cb00240d1d5531d557e092005aa6c6986c25230808512e6d0eacd9766a31fd71417e236fd04df52
6
+ metadata.gz: e212ea03baacf42c0a9b6d73429f2557e248f92c26b7fdbbf35ed7558e9e9e4c9cd3578452e18ad9342256f290de132d43f6c07baf9710922713d6fce05bc09f
7
+ data.tar.gz: aa8f8b7b52a074a83f718b5cab9872b0be8dcc0a2d625b5ebe527267255d4c5b3fdf4663a09c34c0cf04ebecd7cb15e41980153eafd65624909d57fb5aab2923
data/History.txt CHANGED
@@ -1,3 +1,5 @@
1
+ == 2.0.0.pre7 /2016-02-29
2
+ * Bugfix: --check was not working
1
3
  == 2.0.0.pre6 /2016-02-15
2
4
  * Switch the reporter interface to using types instead of hashes
3
5
  * Fix Ruby deprecation warnings
@@ -30,8 +30,12 @@ module Rutema
30
30
  message("start")
31
31
  check,setup,teardown,tests=*parse(test_identifier)
32
32
  if tests.empty?
33
- @dispatcher.exit
34
- raise RutemaError,"Did not parse any tests succesfully"
33
+ if is_special?(test_identifier)
34
+ run_scenarios([check],nil)
35
+ else
36
+ @dispatcher.exit
37
+ raise RutemaError,"Did not parse any tests succesfully"
38
+ end
35
39
  else
36
40
  @runner.setup=setup
37
41
  @runner.teardown=teardown
@@ -49,10 +53,10 @@ module Rutema
49
53
  #we're either parsing all of the tests, or just one
50
54
  #make sure the one test is on the list
51
55
  if test_identifier
52
- if @configuration.tests.include?(File.expand_path(test_identifier))
53
- specs<<parse_specification(File.expand_path(test_identifier))
56
+ if is_spec_included?(test_identifier)
57
+ specs<<parse_specification(File.expand_path(test_identifier)) unless is_special?(test_identifier)
54
58
  else
55
- error(File.expand_path(test_identifier),"Does not exist in the configuration")
59
+ error(File.expand_path(test_identifier),"does not exist in the configuration")
56
60
  end
57
61
  else
58
62
  specs=parse_specifications(@configuration.tests)
@@ -119,6 +123,16 @@ module Rutema
119
123
  end
120
124
  return nil
121
125
  end
126
+ def is_spec_included? test_identifier
127
+ full_path=File.expand_path(test_identifier)
128
+ return @configuration.tests.include?(full_path) || is_special?(test_identifier)
129
+ end
130
+ def is_special? test_identifier
131
+ full_path=File.expand_path(test_identifier)
132
+ return full_path==@configuration.check ||
133
+ full_path==@configuration.setup ||
134
+ full_path==@configuration.teardown
135
+ end
122
136
  end
123
137
  class Dispatcher
124
138
  INTERVAL=0.01
@@ -3,7 +3,7 @@ module Rutema
3
3
  module Version
4
4
  MAJOR=2
5
5
  MINOR=0
6
- TINY="0.pre6"
6
+ TINY="0.pre7"
7
7
  STRING=[ MAJOR, MINOR, TINY ].join( "." )
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rutema
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.pre6
4
+ version: 2.0.0.pre7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vassilis Rizopoulos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-15 00:00:00.000000000 Z
11
+ date: 2016-02-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: patir