Sha256: 6fa1915ccc2ae43beac44b3522f851b90aaf136559a7ba205f34161a9aff2884

Contents?: true

Size: 1.39 KB

Versions: 1

Compression:

Stored size: 1.39 KB

Contents

Feature: Method Filtering

  In order to read more efficiently my log files
  As an EasyLogger Viewer, 
  I want to be able to filter some lines according to the class
  
  @filtering @announce
  Scenario: Class Method Filtering
  Given I write to "testlog.log" with:
  """
  13 Dec 11:35:51|rails[24735]|  INFO  |   Network   |   add_links     | 1
  13 Dec 11:35:52|rails[24735]|  INFO  |    Super    |  create_links   | 2
  13 Dec 11:35:53|rails[24735]|  INFO  |   Network   |  create_links   | 3
  13 Dec 11:35:54|rails[24735]|  INFO  |    Super    |   add_links     | 4
  13 Dec 11:35:55|rails[24735]|  INFO  |   Network   |  create_links   | 5
  13 Dec 11:35:56|rails[24735]|  INFO  |    Super    |  create_links   | 6
  13 Dec 11:35:57|rails[24735]|  INFO  |   Network   |   add_links     | 7
  13 Dec 11:35:58|rails[24735]|  INFO  |    Super    |  create_links   | 8
  13 Dec 11:35:59|rails[24735]|  INFO  |   Network   |   add_links     | 9
  """
  When I run "rvm 1.8.7-head exec ../../bin/EasyLogger text -f -m add_links -c Network testlog.log"
  Then the output should contain:
  """
  13 Dec 11:35:51|rails[24735]|  INFO  |   Network   |   add_links     | 1
  13 Dec 11:35:57|rails[24735]|  INFO  |   Network   |   add_links     | 7
  13 Dec 11:35:59|rails[24735]|  INFO  |   Network   |   add_links     | 9
  """ 
  And the output should not contain "create_links"
  And the output should not contain "Super"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
EasyLogger-0.1.1 features/class_method_filtering.feature