features/printing_hash.feature in table_print-1.1.5 vs features/printing_hash.feature in table_print-1.2.0
- old
+ new
@@ -8,11 +8,11 @@
|Third post! | Peter |
When I table_print data
Then the output should contain
"""
TITLE | AUTHOR
- ---------------------
+ -------------|-------
First post! | Ryan
Second post! | John
Third post! | Peter
"""
@@ -24,11 +24,11 @@
|Third post! | Peter |
When I table_print data, [:include => {:two => lambda{|hash| hash[:author]*2}}]
Then the output should contain
"""
TITLE | AUTHOR | TWO
- ----------------------------------
+ -------------|--------|-----------
First post! | Ryan | RyanRyan
Second post! | John | JohnJohn
Third post! | Peter | PeterPeter
"""
@@ -40,10 +40,10 @@
|Third post! | Peter |
When I table_print data, [:include => :size]
Then the output should contain
"""
TITLE | AUTHOR | SIZE
- ----------------------------
+ -------------|--------|-----
First post! | Ryan | 2
Second post! | John | 2
Third post! | Peter | 2
"""