Skip to content

Instantly share code, notes, and snippets.

@knewter
Created September 2, 2010 19:21
Show Gist options
  • Save knewter/562793 to your computer and use it in GitHub Desktop.
Save knewter/562793 to your computer and use it in GitHub Desktop.
--(jadams@acer-is-win)-(55/pts/2)-(1420/02-Sep-10)--
--($:~/rails/asset_tracker_tutorial_pre)(work)-- mysql -uroot asset_tracker_tutorial_test
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 93
Server version: 5.1.49-1ubuntu7 (Ubuntu)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> SELECT * FROM clients;
Empty set (0.00 sec)
mysql> exit
Bye
--(jadams@acer-is-win)-(56/pts/2)-(1420/02-Sep-10)--
--($:~/rails/asset_tracker_tutorial_pre)(work)-- rake spec
(in /home/jadams/rails/asset_tracker_tutorial_pre)
/home/jadams/.rvm/rubies/ruby-1.9.2-head/bin/ruby -S bundle exec /home/jadams/.rvm/rubies/ruby-1.9.2-head/bin/ruby -Ilib -Ispec "./spec/models/project_spec.rb" "./spec/models/ticket_spec.rb" "./spec/models/work_unit_spec.rb" "./spec/models/client_spec.rb"
Project
fails validation with no name
with an existing project with the same name on a given client
requires unique names scoped by client
Ticket
fails validation with no project_id
WorkUnit
fails validation with no ticket_id
fails validation with no description
fails validation with no scheduled_at
fails validation with no hours
Client
fails validation with no name
fails validation with no status
with an existing client with the same name
fails validation with error on name
Finished in 1.27 seconds
10 examples, 0 failures
--(jadams@acer-is-win)-(57/pts/2)-(1421/02-Sep-10)--
--($:~/rails/asset_tracker_tutorial_pre)(work)-- mysql -uroot asset_tracker_tutorial_test
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 98
Server version: 5.1.49-1ubuntu7 (Ubuntu)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> SELECT * FROM clients;
+----+--------+--------+---------------------+---------------------+
| id | name | status | created_at | updated_at |
+----+--------+--------+---------------------+---------------------+
| 1 | testee | testee | 2010-09-02 19:21:15 | 2010-09-02 19:21:15 |
| 2 | test | test | 2010-09-02 19:21:16 | 2010-09-02 19:21:16 |
+----+--------+--------+---------------------+---------------------+
2 rows in set (0.00 sec)
mysql>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment