acceptance_test 1.10.9 → 1.10.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NjA3MjYyZDE5MDI1ZjViZTI3MDk2ZmFhMjg5MjIyMTU2M2Q1YzYzMg==
4
+ N2Q2NTllZDZmNDE3MGJjZjBkOTQzNWU1YzBiODQ0Y2M1MWQ3MTVkZQ==
5
5
  data.tar.gz: !binary |-
6
- ZmNjZTUwNzJmNzAzNDUwMGVmNDQzMjFkYzczYzhjYWZhZTY1YTZmNg==
6
+ MjlhMmU4ZTA5NmU1YTZjZTY2YjIyYjY5MzMyYTNmMjg1YzgwYTJjNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTdmOWE0YmM1M2M1MGNjYzdlNGIzMDg3ZDE1Y2E1MGRlNWNkMzdiZDEyNTM5
10
- YTNjOTg2MzRiY2Y0YzhmN2RhMjE5ZmQ2MzQxNDU4ZjQ1NDY4OTE2MzNjNjgz
11
- MDU5Mjk0YTcyZDIyOGM3ODQwNjQzMTUxMTgyMzBhZDU3OGY4MTI=
9
+ MDEyYTI5MWUzYTdlYTU2MmM2NDRkMGYzMmMyNzU5YzQxYzg4ZWZkNDUyNzI2
10
+ MmJiYjM2OWQ1MmZjN2NkYTQyZmM2NjA3YzE2ODI1MGIzYWVlYjdkYjI3MTk0
11
+ MTU0YTkxNTFjOTA3ZjIzZTViY2QwZWJkN2Q0MzFmZjAyMzJjYTI=
12
12
  data.tar.gz: !binary |-
13
- OTZkNmFkOWE2YzlhMzJmNmEyODg5MjRiNzU2MGY4Yzk5NDU0MTJmNjI3ODNj
14
- OGE2Mzg0N2YwZGU4MGY0NTNkM2ZjYTQzMjdkZGFhY2NlYzNmNzY3MTIzMGQ1
15
- MWQzMDFiZWFiNDE2MjI2ZTJiYTVmZWZmMzMxZTk5MzJkYWVjN2E=
13
+ MmZlZDA4Njg5YWJmY2M1NDMxYzc3Y2M2YjRiOWYyMWRiNmM2NDY1NDcyMmQ0
14
+ YTRjZTIwYWM4Y2Q2ZjEzMDRmMzAwMjE3MjIxZDVlOWI2NTFiMDI2MmQzZjY1
15
+ NjE5YmY4M2ExMWUwNjg5ZjUyYjJlYzA5ZTQ4NTU5MzEyMjljNjQ=
data/CHANGES CHANGED
@@ -327,4 +327,8 @@
327
327
 
328
328
  == Version 1.10.9
329
329
 
330
+ * Bug fixes
331
+
332
+ == Version 1.10.10
333
+
330
334
  * Bug fixes
@@ -13,7 +13,8 @@ class AcceptanceConfig
13
13
  def configure workspace, app_name=nil
14
14
  @app_name = app_name
15
15
 
16
- load_support_code workspace
16
+ support_dirs = load_code_from_support workspace
17
+ load_steps support_dirs
17
18
 
18
19
  acceptance_test = AcceptanceTest.instance
19
20
 
@@ -22,6 +23,10 @@ class AcceptanceConfig
22
23
  acceptance_config = acceptance_config_file ? HashWithIndifferentAccess.new(YAML.load_file(acceptance_config_file)) : {}
23
24
  acceptance_test.configure(acceptance_config)
24
25
 
26
+ if block_given?
27
+ yield acceptance_config
28
+ end
29
+
25
30
  RSpec.configure do |config|
26
31
  configure_turnip
27
32
 
@@ -128,18 +133,22 @@ class AcceptanceConfig
128
133
  File.expand_path("tmp/#{file_name}")
129
134
  end
130
135
 
131
- def load_support_code basedir
136
+ def load_code_from_support basedir
132
137
  support_dirs = []
133
138
 
134
- Dir.glob("#{basedir}/**/*").each do |name|
139
+ Dir["#{basedir}/**/*"].each do |name|
135
140
  if File.exist?(name) && File.basename(name) == 'support'
136
141
  support_dirs << name
137
142
  $LOAD_PATH << name
138
143
  end
139
144
  end
140
145
 
146
+ support_dirs
147
+ end
148
+
149
+ def load_steps support_dirs
141
150
  support_dirs.each do |support_dir|
142
- Dir.glob("#{support_dir}/**/steps/*_steps.rb").each do |name|
151
+ Dir["#{support_dir}/**/steps/*_steps.rb"].each do |name|
143
152
  ext = File.extname(name)
144
153
 
145
154
  require name[support_dir.length+1..name.length-ext.length-1]
@@ -1,3 +1,3 @@
1
1
  class AcceptanceTest
2
- VERSION = "1.10.9"
2
+ VERSION = "1.10.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acceptance_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.9
4
+ version: 1.10.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-02 00:00:00.000000000 Z
11
+ date: 2015-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec