lib/tork/config/cucumber.rb in tork-17.1.0 vs lib/tork/config/cucumber.rb in tork-18.0.0
- old
+ new
@@ -2,15 +2,15 @@
Tork::Config.all_test_file_globs << 'features/**/*.feature'
Tork::Config.test_file_globbers.update(
# source files that correspond to test files
- %r<^(features/(.+/)?)step_definitions/.+\.rb$> => lambda do |path, matches|
+ %r<^(features/(.+/)?)step_definitions/.+\.rb$> => lambda do |matches|
matches[1] + '*.feature'
end,
# the actual test files themselves
- %r<^features/.+\.feature$> => lambda {|path, matches| path }
+ %r<^features/.+\.feature$> => lambda {|matches| matches[0] }
)
Tork::Config.after_fork_hooks.push lambda {
|test_file, line_numbers, log_file, worker_number|