diff options
author | Azul <azul@riseup.net> | 2016-05-18 20:21:04 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-05-18 20:21:04 +0200 |
commit | 83f59164fc069f2593cf6babbc18638d9a68c9a3 (patch) | |
tree | b357b100bfd40eb098040c4214776a5fb9bbff9b /features/support/hooks.rb | |
parent | e05a1b0f5ae40a2aa17976b3009cd563b8e4660a (diff) |
features for API version 2 - keep old ones
Now we test both api versions. We want this for backwards compatibility.
Diffstat (limited to 'features/support/hooks.rb')
-rw-r--r-- | features/support/hooks.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/features/support/hooks.rb b/features/support/hooks.rb index 256e5d8..4ddc77e 100644 --- a/features/support/hooks.rb +++ b/features/support/hooks.rb @@ -13,9 +13,9 @@ end After do |scenario| if scenario.failed? logfile_path = Rails.root + 'tmp' - logfile_path += "#{scenario.title.gsub(/\s/, '_')}.log" + logfile_path += "#{scenario.name.gsub(/\s/, '_')}.log" File.open(logfile_path, 'w') do |test_log| - test_log.puts scenario.title + test_log.puts scenario.name test_log.puts "=========================" test_log.puts `tail log/test.log -n 200` end |