1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00

Test that table steps work without a trailing colon

This commit is contained in:
Joshua Clayton 2012-03-09 14:26:24 -05:00
parent d4b8cac70c
commit 48afe244c6

View file

@ -8,6 +8,14 @@ Feature: Use step definitions generated by factories
| title | body |
| a fun title | here is the content |
Scenario: create a post and verify its attributes without the trailing colon
Given the following post exists
| Title | Body |
| a fun title | here is the content |
Then I should find the following for the last post:
| title | body |
| a fun title | here is the content |
Scenario: create a post without a table and verify its attributes
Given a post exists with a title of "a fun title"
Then I should find the following for the last post: