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:
parent
d4b8cac70c
commit
48afe244c6
1 changed files with 8 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue