Permalink
Browse files

whitespace: reindenting tables

  • Loading branch information...
nruth authored and ianwhite committed Jul 27, 2010
1 parent 36bd01f commit 3be0f5f349450da07785f6eb83820d34f4c0e38c
@@ -65,9 +65,9 @@ Feature: What happens to fixtures belonging to deleted records when I perform a
Scenario Outline: CLOBBER= removes all existing fixtures before dumping new ones, combining with TABLES= means only those tables' fixtures will exist
Given the database has a "debts" table (with timestamps):
- | name (string) | surname (string) |
- | Fred | Bloggs |
- | Ethel | Smith |
+ | name (string) | surname (string) |
+ | Fred | Bloggs |
+ | Ethel | Smith |
When I run "rake db:dump FORCE=1"
Then the following files should exist:
| db/dump/users/0000/0001.yml |
@@ -19,10 +19,10 @@ Feature: Dump specific tables
Scenario: dump specific tables
Given the database has a "seen" table (with timestamps):
- | bird (string) | seen (integer) |
- | Parrot | 1 |
- | Robin | 3 |
- | Goldfinch | 6 |
+ | bird (string) | seen (integer) |
+ | Parrot | 1 |
+ | Robin | 3 |
+ | Goldfinch | 6 |
Given the database has a "notes" table:
| content (text) |
| Fred spotted a parrot?? |
@@ -81,23 +81,23 @@ Feature: Load a database
| name | varchar(255) |
| surname | varchar(255) |
And the "users" table should match exactly:
- | id | name | surname | created_at | updated_at |
- | 1 | Jane | Heidie | 2003-07-26 12:38:10 | 2007-07-26 12:48:10 |
- | 10008 | Ethel | Smith | 2008-07-26 19:38:10 | 2010-03-22 11:38:10 |
+ | id | name | surname | created_at | updated_at |
+ | 1 | Jane | Heidie | 2003-07-26 12:38:10 | 2007-07-26 12:48:10 |
+ | 10008 | Ethel | Smith | 2008-07-26 19:38:10 | 2010-03-22 11:38:10 |
And a "debts" table should exist with structure:
| name | type |
| id | INTEGER |
| name | varchar(255) |
| amount | integer |
And the "debts" table should match exactly:
- | id | name | amount |
- | 12 | Jane Heidie | 3403 |
+ | id | name | amount |
+ | 12 | Jane Heidie | 3403 |
And a "schema_migrations" table should exist with structure:
| name | type |
| id | INTEGER |
| version | varchar(255) |
And the "schema_migrations" table should match exactly:
- | id | version |
- | 1 | 01001010123 |
+ | id | version |
+ | 1 | 01001010123 |

0 comments on commit 3be0f5f

Please sign in to comment.