post_pusher 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/generators/post_push_task/templates/post_push_task.rake.erb +8 -1
- data/lib/post_pusher/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/post_push/1_broken_task.log +3 -3
- data/test/dummy/log/test.log +37 -971
- metadata +37 -37
data/test/dummy/log/test.log
CHANGED
@@ -1,1008 +1,74 @@
|
|
1
1
|
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2
|
-
[1m[35m (
|
3
|
-
[1m[35m (
|
2
|
+
[1m[35m (45.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
3
|
+
[1m[35m (93.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
4
4
|
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
5
5
|
Migrating to CreateUser (20150618161222)
|
6
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
7
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)[0m
|
8
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20150618161222"]]
|
9
|
+
[1m[35m (54.4ms)[0m [1m[36mcommit transaction[0m
|
10
|
+
Migrating to CreateSoftDeletables (20151229195418)
|
11
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
12
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "soft_deletables" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_deleted" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
13
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20151229195418"]]
|
14
|
+
[1m[35m (69.7ms)[0m [1m[36mcommit transaction[0m
|
15
|
+
Migrating to CreatePostPushStatus (20160620190743)
|
6
16
|
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7
|
-
[1m[35m (0.
|
8
|
-
[1m[
|
9
|
-
[1m[
|
10
|
-
|
11
|
-
[1m[
|
12
|
-
[1m[35m (0.
|
13
|
-
[1m[
|
14
|
-
[1m[35m (
|
15
|
-
Migrating to CreatePostPushStatus (20160620190743)
|
16
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
17
|
-
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "post_push_statuses" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "task_name" varchar NOT NULL)[0m
|
18
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_post_push_statuses_on_task_name" ON "post_push_statuses" ("task_name")[0m
|
19
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160620190743"]]
|
20
|
-
[1m[35m (0.5ms)[0m [1m[36mcommit transaction[0m
|
21
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
22
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
23
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-06-28 13:26:48.853070"], ["updated_at", "2018-06-28 13:26:48.853070"]]
|
24
|
-
[1m[35m (0.4ms)[0m [1m[36mcommit transaction[0m
|
25
|
-
---------------------------------------------------------
|
26
|
-
#work: test_0001_should not mark failed tasks as finished
|
27
|
-
---------------------------------------------------------
|
28
|
-
[1m[35m (0.7ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
29
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
30
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
31
|
-
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
32
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
33
|
-
--------------------------------------------------------------------------------------------------
|
34
|
-
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
35
|
-
--------------------------------------------------------------------------------------------------
|
36
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
37
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
38
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
39
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
40
|
-
------------------------------------------------------
|
41
|
-
happy path: test_0001_should log the rake tasks output
|
42
|
-
------------------------------------------------------
|
43
|
-
--------------------------------------------------------------------------
|
44
|
-
#runnable_tasks: test_0001_should only return tasks that have not been run
|
45
|
-
--------------------------------------------------------------------------
|
46
|
-
[1m[35m (0.7ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
47
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
48
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
49
|
-
-----------------------------------------------------------------------
|
50
|
-
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
51
|
-
-----------------------------------------------------------------------
|
52
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
53
|
-
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
54
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
55
|
-
---------------------------------------------------------------------
|
56
|
-
#completed_tasks: test_0001_should return tasks we know are completed
|
57
|
-
---------------------------------------------------------------------
|
58
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
59
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
60
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
61
|
-
-------------------------------------------------------------------------------
|
62
|
-
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
63
|
-
-------------------------------------------------------------------------------
|
64
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
65
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
66
|
-
----------------------------------------------------
|
67
|
-
broken tasks: test_0001_should also log busted tasks
|
68
|
-
----------------------------------------------------
|
69
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
70
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
71
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
72
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
73
|
-
--------------------------------------------------------------------------------------------------
|
74
|
-
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
75
|
-
--------------------------------------------------------------------------------------------------
|
76
|
-
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
77
|
-
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
78
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
79
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
80
|
-
---------------------------------------------------------
|
81
|
-
#work: test_0001_should not mark failed tasks as finished
|
82
|
-
---------------------------------------------------------
|
83
|
-
[1m[35m (0.4ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
84
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
85
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
86
|
-
[1m[35m (1.0ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
87
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
88
|
-
------------------------------------------------------
|
89
|
-
happy path: test_0001_should log the rake tasks output
|
90
|
-
------------------------------------------------------
|
91
|
-
---------------------------------------------------------------------
|
92
|
-
#completed_tasks: test_0001_should return tasks we know are completed
|
93
|
-
---------------------------------------------------------------------
|
94
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
95
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
96
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
97
|
-
----------------------------------------------------
|
98
|
-
broken tasks: test_0001_should also log busted tasks
|
99
|
-
----------------------------------------------------
|
100
|
-
-----------------------------------------------------------------------
|
101
|
-
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
102
|
-
-----------------------------------------------------------------------
|
103
|
-
[1m[35m (2.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
104
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
105
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
106
|
-
--------------------------------------------------------------------------
|
107
|
-
#runnable_tasks: test_0001_should only return tasks that have not been run
|
108
|
-
--------------------------------------------------------------------------
|
109
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
110
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
111
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
112
|
-
-------------------------------------------------------------------------------
|
113
|
-
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
114
|
-
-------------------------------------------------------------------------------
|
115
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
116
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
117
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
118
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
119
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
120
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
121
|
-
--------------------------------------------------------------------------------------------------
|
122
|
-
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
123
|
-
--------------------------------------------------------------------------------------------------
|
124
|
-
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
125
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
126
|
-
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
127
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
128
|
-
------------------------------------------------------
|
129
|
-
happy path: test_0001_should log the rake tasks output
|
130
|
-
------------------------------------------------------
|
131
|
-
----------------------------------------------------
|
132
|
-
broken tasks: test_0001_should also log busted tasks
|
133
|
-
----------------------------------------------------
|
134
|
-
-------------------------------------------------------------------------------
|
135
|
-
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
136
|
-
-------------------------------------------------------------------------------
|
137
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
138
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
139
|
-
--------------------------------------------------------------------------
|
140
|
-
#runnable_tasks: test_0001_should only return tasks that have not been run
|
141
|
-
--------------------------------------------------------------------------
|
142
|
-
[1m[35m (0.7ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
143
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
144
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
145
|
-
-----------------------------------------------------------------------
|
146
|
-
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
147
|
-
-----------------------------------------------------------------------
|
148
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
149
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
150
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
151
|
-
---------------------------------------------------------
|
152
|
-
#work: test_0001_should not mark failed tasks as finished
|
153
|
-
---------------------------------------------------------
|
154
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
155
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
156
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
157
|
-
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
158
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
159
|
-
---------------------------------------------------------------------
|
160
|
-
#completed_tasks: test_0001_should return tasks we know are completed
|
161
|
-
---------------------------------------------------------------------
|
162
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
163
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
164
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
165
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
166
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
167
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
168
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
169
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
170
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
171
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
172
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
173
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
174
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
175
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
176
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
177
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
178
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
179
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
180
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
181
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
182
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
183
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
184
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
185
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
186
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
187
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
188
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
189
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
190
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
191
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
192
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
193
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
194
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
195
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
196
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
197
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
198
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
199
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
200
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
201
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
202
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
203
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
204
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
205
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
206
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
207
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
208
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
209
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
210
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
211
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
212
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
213
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
214
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
215
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
216
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
217
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
218
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
219
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
220
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
221
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
222
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
223
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
224
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
225
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
226
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
227
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
228
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
229
|
-
------------------------------------------------------
|
230
|
-
happy path: test_0001_should log the rake tasks output
|
231
|
-
------------------------------------------------------
|
232
|
-
---------------------------------------------------------------------
|
233
|
-
#completed_tasks: test_0001_should return tasks we know are completed
|
234
|
-
---------------------------------------------------------------------
|
235
|
-
[1m[35m (1.8ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
236
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
237
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
238
|
-
---------------------------------------------------------
|
239
|
-
#work: test_0001_should not mark failed tasks as finished
|
240
|
-
---------------------------------------------------------
|
241
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
242
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
243
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
244
|
-
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
245
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
246
|
-
--------------------------------------------------------------------------------------------------
|
247
|
-
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
248
|
-
--------------------------------------------------------------------------------------------------
|
249
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
250
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
251
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
252
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
253
|
-
-------------------------------------------------------------------------------
|
254
|
-
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
255
|
-
-------------------------------------------------------------------------------
|
256
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
257
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
258
|
-
----------------------------------------------------------------------------------
|
259
|
-
PostPusher::Generators::InstallGeneratorTest: test_0001_creates the migration file
|
260
|
-
----------------------------------------------------------------------------------
|
261
|
-
--------------------------------------------------------------------------
|
262
|
-
#runnable_tasks: test_0001_should only return tasks that have not been run
|
263
|
-
--------------------------------------------------------------------------
|
264
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
265
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
266
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
267
|
-
-----------------------------------------------------------------------
|
268
|
-
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
269
|
-
-----------------------------------------------------------------------
|
270
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
271
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
272
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
273
|
-
----------------------------------------------------
|
274
|
-
broken tasks: test_0001_should also log busted tasks
|
275
|
-
----------------------------------------------------
|
276
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
277
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
278
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
279
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
280
|
-
------------------------------------------------------
|
281
|
-
happy path: test_0001_should log the rake tasks output
|
282
|
-
------------------------------------------------------
|
283
|
-
----------------------------------------------------------------------------------
|
284
|
-
PostPusher::Generators::InstallGeneratorTest: test_0001_creates the migration file
|
285
|
-
----------------------------------------------------------------------------------
|
286
|
-
--------------------------------------------------------------------------------------------------
|
287
|
-
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
288
|
-
--------------------------------------------------------------------------------------------------
|
289
|
-
[1m[35m (0.7ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
290
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
291
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
292
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
293
|
-
---------------------------------------------------------
|
294
|
-
#work: test_0001_should not mark failed tasks as finished
|
295
|
-
---------------------------------------------------------
|
296
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
297
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
298
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
299
|
-
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
300
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
301
|
-
--------------------------------------------------------------------------
|
302
|
-
#runnable_tasks: test_0001_should only return tasks that have not been run
|
303
|
-
--------------------------------------------------------------------------
|
304
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
305
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
306
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
307
|
-
-----------------------------------------------------------------------
|
308
|
-
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
309
|
-
-----------------------------------------------------------------------
|
310
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
311
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
312
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
313
|
-
----------------------------------------------------
|
314
|
-
broken tasks: test_0001_should also log busted tasks
|
315
|
-
----------------------------------------------------
|
316
|
-
-------------------------------------------------------------------------------
|
317
|
-
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
318
|
-
-------------------------------------------------------------------------------
|
319
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
320
|
-
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
321
|
-
---------------------------------------------------------------------
|
322
|
-
#completed_tasks: test_0001_should return tasks we know are completed
|
323
|
-
---------------------------------------------------------------------
|
324
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
325
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
326
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
327
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
328
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
329
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
330
|
-
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
331
|
-
---------------------------------------------------------
|
332
|
-
#work: test_0001_should not mark failed tasks as finished
|
333
|
-
---------------------------------------------------------
|
334
|
-
[1m[35m (1.2ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
335
|
-
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
336
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
337
|
-
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
338
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
339
|
-
---------------------------------------------------------------------
|
340
|
-
#completed_tasks: test_0001_should return tasks we know are completed
|
341
|
-
---------------------------------------------------------------------
|
342
|
-
[1m[35m (0.4ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
343
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
344
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
345
|
-
----------------------------------------------------
|
346
|
-
broken tasks: test_0001_should also log busted tasks
|
347
|
-
----------------------------------------------------
|
348
|
-
----------------------------------------------------------------------------------
|
349
|
-
PostPusher::Generators::InstallGeneratorTest: test_0001_creates the migration file
|
350
|
-
----------------------------------------------------------------------------------
|
351
|
-
--------------------------------------------------------------------------
|
352
|
-
#runnable_tasks: test_0001_should only return tasks that have not been run
|
353
|
-
--------------------------------------------------------------------------
|
354
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
355
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
356
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
357
|
-
-----------------------------------------------------------------------
|
358
|
-
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
359
|
-
-----------------------------------------------------------------------
|
360
|
-
[1m[35m (1.3ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
361
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
362
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
363
|
-
--------------------------------------------------------------------------------------------------
|
364
|
-
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
365
|
-
--------------------------------------------------------------------------------------------------
|
366
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
367
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
368
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
369
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
370
|
-
------------------------------------------------------
|
371
|
-
happy path: test_0001_should log the rake tasks output
|
372
|
-
------------------------------------------------------
|
373
|
-
-------------------------------------------------------------------------------
|
374
|
-
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
375
|
-
-------------------------------------------------------------------------------
|
376
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
377
|
-
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
378
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
379
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
380
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
381
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
382
|
-
------------------------------------------------------
|
383
|
-
happy path: test_0001_should log the rake tasks output
|
384
|
-
------------------------------------------------------
|
385
|
-
----------------------------------------------------------------------------------
|
386
|
-
PostPusher::Generators::InstallGeneratorTest: test_0001_creates the migration file
|
387
|
-
----------------------------------------------------------------------------------
|
388
|
-
-------------------------------------------------------------------------------
|
389
|
-
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
390
|
-
-------------------------------------------------------------------------------
|
391
|
-
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
392
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
393
|
-
----------------------------------------------------
|
394
|
-
broken tasks: test_0001_should also log busted tasks
|
395
|
-
----------------------------------------------------
|
396
|
-
--------------------------------------------------------------------------
|
397
|
-
#runnable_tasks: test_0001_should only return tasks that have not been run
|
398
|
-
--------------------------------------------------------------------------
|
399
|
-
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
400
|
-
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
401
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
402
|
-
-----------------------------------------------------------------------
|
403
|
-
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
404
|
-
-----------------------------------------------------------------------
|
405
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
406
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
407
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
408
|
-
---------------------------------------------------------
|
409
|
-
#work: test_0001_should not mark failed tasks as finished
|
410
|
-
---------------------------------------------------------
|
411
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
412
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
413
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
414
|
-
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
415
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
416
|
-
--------------------------------------------------------------------------------------------------
|
417
|
-
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
418
|
-
--------------------------------------------------------------------------------------------------
|
419
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
420
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
421
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
422
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
423
|
-
---------------------------------------------------------------------
|
424
|
-
#completed_tasks: test_0001_should return tasks we know are completed
|
425
|
-
---------------------------------------------------------------------
|
426
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
427
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
428
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
429
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
430
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
431
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
432
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
433
|
-
-------------------------------------------------------------------------------
|
434
|
-
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
435
|
-
-------------------------------------------------------------------------------
|
436
|
-
[1m[35m (1.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
437
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
438
|
-
---------------------------------------------------------------------
|
439
|
-
#completed_tasks: test_0001_should return tasks we know are completed
|
440
|
-
---------------------------------------------------------------------
|
441
|
-
[1m[35m (0.7ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
442
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
443
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
444
|
-
---------------------------------------------------------
|
445
|
-
#work: test_0001_should not mark failed tasks as finished
|
446
|
-
---------------------------------------------------------
|
447
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
448
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
449
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
450
|
-
[1m[35m (1.0ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
451
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
452
|
-
----------------------------------------------------
|
453
|
-
broken tasks: test_0001_should also log busted tasks
|
454
|
-
----------------------------------------------------
|
455
|
-
------------------------------------------------------
|
456
|
-
happy path: test_0001_should log the rake tasks output
|
457
|
-
------------------------------------------------------
|
458
|
-
--------------------------------------------------------------------------------------------------
|
459
|
-
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
460
|
-
--------------------------------------------------------------------------------------------------
|
461
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
462
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
463
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
464
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
465
|
-
----------------------------------------------------------------------------------
|
466
|
-
PostPusher::Generators::InstallGeneratorTest: test_0001_creates the migration file
|
467
|
-
----------------------------------------------------------------------------------
|
468
|
-
-----------------------------------------------------------------------
|
469
|
-
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
470
|
-
-----------------------------------------------------------------------
|
471
|
-
[1m[35m (0.7ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
472
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
473
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
474
|
-
--------------------------------------------------------------------------
|
475
|
-
#runnable_tasks: test_0001_should only return tasks that have not been run
|
476
|
-
--------------------------------------------------------------------------
|
477
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
478
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
479
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
480
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
481
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
482
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
483
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
484
|
-
----------------------------------------------------
|
485
|
-
broken tasks: test_0001_should also log busted tasks
|
486
|
-
----------------------------------------------------
|
487
|
-
---------------------------------------------------------------------
|
488
|
-
#completed_tasks: test_0001_should return tasks we know are completed
|
489
|
-
---------------------------------------------------------------------
|
490
|
-
[1m[35m (1.3ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
491
|
-
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
492
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
493
|
-
----------------------------------------------------------------------------------
|
494
|
-
PostPusher::Generators::InstallGeneratorTest: test_0001_creates the migration file
|
495
|
-
----------------------------------------------------------------------------------
|
496
|
-
------------------------------------------------------
|
497
|
-
happy path: test_0001_should log the rake tasks output
|
498
|
-
------------------------------------------------------
|
499
|
-
--------------------------------------------------------------------------------------------------
|
500
|
-
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
501
|
-
--------------------------------------------------------------------------------------------------
|
502
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
503
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
504
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
505
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
506
|
-
-------------------------------------------------------------------------------
|
507
|
-
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
508
|
-
-------------------------------------------------------------------------------
|
509
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
510
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
511
|
-
--------------------------------------------------------------------------
|
512
|
-
#runnable_tasks: test_0001_should only return tasks that have not been run
|
513
|
-
--------------------------------------------------------------------------
|
514
|
-
[1m[35m (0.7ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
515
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
516
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
517
|
-
-----------------------------------------------------------------------
|
518
|
-
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
519
|
-
-----------------------------------------------------------------------
|
520
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
521
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
522
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
523
|
-
---------------------------------------------------------
|
524
|
-
#work: test_0001_should not mark failed tasks as finished
|
525
|
-
---------------------------------------------------------
|
526
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
527
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
528
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
529
|
-
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
530
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
531
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
532
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
533
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
534
|
-
[1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m
|
535
|
-
-------------------------------------------------------------------------------
|
536
|
-
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
537
|
-
-------------------------------------------------------------------------------
|
538
|
-
[1m[35m (1.1ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
539
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
540
|
-
--------------------------------------------------------------------------------------------------
|
541
|
-
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
542
|
-
--------------------------------------------------------------------------------------------------
|
543
|
-
[1m[35m (0.7ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
544
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
545
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
546
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
547
|
-
----------------------------------------------------------------------------------
|
548
|
-
PostPusher::Generators::InstallGeneratorTest: test_0001_creates the migration file
|
549
|
-
----------------------------------------------------------------------------------
|
550
|
-
------------------------------------------------------
|
551
|
-
happy path: test_0001_should log the rake tasks output
|
552
|
-
------------------------------------------------------
|
553
|
-
---------------------------------------------------------------------
|
554
|
-
#completed_tasks: test_0001_should return tasks we know are completed
|
555
|
-
---------------------------------------------------------------------
|
556
|
-
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
557
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
558
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
559
|
-
---------------------------------------------------------
|
560
|
-
#work: test_0001_should not mark failed tasks as finished
|
561
|
-
---------------------------------------------------------
|
562
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
563
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
564
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
565
|
-
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
566
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
567
|
-
--------------------------------------------------------------------------
|
568
|
-
#runnable_tasks: test_0001_should only return tasks that have not been run
|
569
|
-
--------------------------------------------------------------------------
|
570
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
571
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
572
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
573
|
-
-----------------------------------------------------------------------
|
574
|
-
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
575
|
-
-----------------------------------------------------------------------
|
576
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
577
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
578
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
579
|
-
----------------------------------------------------
|
580
|
-
broken tasks: test_0001_should also log busted tasks
|
581
|
-
----------------------------------------------------
|
582
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
583
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
584
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
585
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
586
|
-
----------------------------------------------------------------------------------
|
587
|
-
PostPusher::Generators::InstallGeneratorTest: test_0001_creates the migration file
|
588
|
-
----------------------------------------------------------------------------------
|
589
|
-
--------------------------------------------------------------------------
|
590
|
-
#runnable_tasks: test_0001_should only return tasks that have not been run
|
591
|
-
--------------------------------------------------------------------------
|
592
|
-
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
593
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
594
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
595
|
-
-----------------------------------------------------------------------
|
596
|
-
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
597
|
-
-----------------------------------------------------------------------
|
598
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
599
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
600
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
601
|
-
---------------------------------------------------------
|
602
|
-
#work: test_0001_should not mark failed tasks as finished
|
603
|
-
---------------------------------------------------------
|
604
|
-
[1m[35m (0.7ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
605
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
606
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
607
|
-
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
608
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
609
|
-
---------------------------------------------------------------------
|
610
|
-
#completed_tasks: test_0001_should return tasks we know are completed
|
611
|
-
---------------------------------------------------------------------
|
612
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
613
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
614
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
615
|
-
-------------------------------------------------------------------------------
|
616
|
-
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
617
|
-
-------------------------------------------------------------------------------
|
618
|
-
[1m[35m (0.4ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
619
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
620
|
-
------------------------------------------------------
|
621
|
-
happy path: test_0001_should log the rake tasks output
|
622
|
-
------------------------------------------------------
|
623
|
-
--------------------------------------------------------------------------------------------------
|
624
|
-
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
625
|
-
--------------------------------------------------------------------------------------------------
|
626
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
627
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
628
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
629
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
630
|
-
----------------------------------------------------
|
631
|
-
broken tasks: test_0001_should also log busted tasks
|
632
|
-
----------------------------------------------------
|
633
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
634
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
635
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
636
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
637
|
-
-------------------------------------------------------------------------------
|
638
|
-
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
639
|
-
-------------------------------------------------------------------------------
|
640
|
-
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
641
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
642
|
-
--------------------------------------------------------------------------------------------------
|
643
|
-
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
644
|
-
--------------------------------------------------------------------------------------------------
|
645
|
-
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
646
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
647
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
648
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
649
|
-
----------------------------------------------------------------------------------
|
650
|
-
PostPusher::Generators::InstallGeneratorTest: test_0001_creates the migration file
|
651
|
-
----------------------------------------------------------------------------------
|
652
|
-
----------------------------------------------------
|
653
|
-
broken tasks: test_0001_should also log busted tasks
|
654
|
-
----------------------------------------------------
|
655
|
-
--------------------------------------------------------------------------
|
656
|
-
#runnable_tasks: test_0001_should only return tasks that have not been run
|
657
|
-
--------------------------------------------------------------------------
|
658
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
659
|
-
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
660
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
661
|
-
-----------------------------------------------------------------------
|
662
|
-
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
663
|
-
-----------------------------------------------------------------------
|
664
|
-
[1m[35m (1.2ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
665
|
-
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
666
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
667
|
-
---------------------------------------------------------
|
668
|
-
#work: test_0001_should not mark failed tasks as finished
|
669
|
-
---------------------------------------------------------
|
670
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
671
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
672
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
673
|
-
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
674
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
675
|
-
---------------------------------------------------------------------
|
676
|
-
#completed_tasks: test_0001_should return tasks we know are completed
|
677
|
-
---------------------------------------------------------------------
|
678
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
679
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
680
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
17
|
+
[1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "post_push_statuses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_name" varchar NOT NULL)[0m
|
18
|
+
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_post_push_statuses_on_task_name" ON "post_push_statuses" ("task_name")[0m
|
19
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20160620190743"]]
|
20
|
+
[1m[35m (18.9ms)[0m [1m[36mcommit transaction[0m
|
21
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
22
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
23
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-01-25 14:53:30.367118"], ["updated_at", "2019-01-25 14:53:30.367118"]]
|
24
|
+
[1m[35m (16.6ms)[0m [1m[36mcommit transaction[0m
|
681
25
|
------------------------------------------------------
|
682
26
|
happy path: test_0001_should log the rake tasks output
|
683
27
|
------------------------------------------------------
|
684
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
685
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
686
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
687
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
688
28
|
--------------------------------------------------------------------------------------------------
|
689
29
|
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
690
30
|
--------------------------------------------------------------------------------------------------
|
691
|
-
[1m[35m (
|
692
|
-
[1m[35m (
|
693
|
-
[1m[35m (
|
694
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
695
|
-
----------------------------------------------------
|
696
|
-
broken tasks: test_0001_should also log busted tasks
|
697
|
-
----------------------------------------------------
|
698
|
-
----------------------------------------------------------------------------------
|
699
|
-
PostPusher::Generators::InstallGeneratorTest: test_0001_creates the migration file
|
700
|
-
----------------------------------------------------------------------------------
|
701
|
-
---------------------------------------------------------------------
|
702
|
-
#completed_tasks: test_0001_should return tasks we know are completed
|
703
|
-
---------------------------------------------------------------------
|
704
|
-
[1m[35m (0.7ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
705
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
706
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
707
|
-
---------------------------------------------------------
|
708
|
-
#work: test_0001_should not mark failed tasks as finished
|
709
|
-
---------------------------------------------------------
|
710
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
711
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
31
|
+
[1m[35m (25.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
32
|
+
[1m[35m (77.0ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
33
|
+
[1m[35m (18.8ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
712
34
|
[1m[35m (0.3ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
713
|
-
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
714
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
715
|
-
--------------------------------------------------------------------------
|
716
|
-
#runnable_tasks: test_0001_should only return tasks that have not been run
|
717
|
-
--------------------------------------------------------------------------
|
718
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
719
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
720
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
721
|
-
-----------------------------------------------------------------------
|
722
|
-
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
723
|
-
-----------------------------------------------------------------------
|
724
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
725
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
726
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
727
|
-
-------------------------------------------------------------------------------
|
728
|
-
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
729
|
-
-------------------------------------------------------------------------------
|
730
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
731
|
-
[1m[35m (2.2ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
732
|
-
------------------------------------------------------
|
733
|
-
happy path: test_0001_should log the rake tasks output
|
734
|
-
------------------------------------------------------
|
735
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
736
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
737
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
738
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
739
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
740
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
741
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
742
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
743
35
|
---------------------------------------------------------------------
|
744
36
|
#completed_tasks: test_0001_should return tasks we know are completed
|
745
37
|
---------------------------------------------------------------------
|
746
|
-
[1m[35m (
|
747
|
-
[1m[35m (
|
748
|
-
[1m[35m (0.
|
749
|
-
------------------------------------------------------
|
750
|
-
happy path: test_0001_should log the rake tasks output
|
751
|
-
------------------------------------------------------
|
752
|
-
--------------------------------------------------------------------------------------------------
|
753
|
-
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
754
|
-
--------------------------------------------------------------------------------------------------
|
755
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
756
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
757
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
758
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
759
|
-
----------------------------------------------------------------------------------
|
760
|
-
PostPusher::Generators::InstallGeneratorTest: test_0001_creates the migration file
|
761
|
-
----------------------------------------------------------------------------------
|
762
|
-
-----------------------------------------------------------------------------------------------------
|
763
|
-
PostPusher::Generators::InstallGeneratorTest: test_0002_skips the migration file if it already exists
|
764
|
-
-----------------------------------------------------------------------------------------------------
|
765
|
-
-------------------------------------------------------------------------------
|
766
|
-
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
767
|
-
-------------------------------------------------------------------------------
|
768
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
769
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
770
|
-
--------------------------------------------------------------------------
|
771
|
-
#runnable_tasks: test_0001_should only return tasks that have not been run
|
772
|
-
--------------------------------------------------------------------------
|
773
|
-
[1m[35m (0.7ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
774
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
775
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
38
|
+
[1m[35m (83.3ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
39
|
+
[1m[35m (18.0ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
40
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
776
41
|
-----------------------------------------------------------------------
|
777
42
|
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
778
43
|
-----------------------------------------------------------------------
|
779
|
-
[1m[35m (
|
780
|
-
[1m[35m (
|
781
|
-
[1m[35m (0.
|
782
|
-
---------------------------------------------------------
|
783
|
-
#work: test_0001_should not mark failed tasks as finished
|
784
|
-
---------------------------------------------------------
|
785
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
786
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
787
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
788
|
-
[1m[35m (1.0ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
789
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
790
|
-
----------------------------------------------------
|
791
|
-
broken tasks: test_0001_should also log busted tasks
|
792
|
-
----------------------------------------------------
|
793
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
794
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
795
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
796
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
797
|
-
----------------------------------------------------
|
798
|
-
broken tasks: test_0001_should also log busted tasks
|
799
|
-
----------------------------------------------------
|
800
|
-
----------------------------------------------------------------------------------
|
801
|
-
PostPusher::Generators::InstallGeneratorTest: test_0001_creates the migration file
|
802
|
-
----------------------------------------------------------------------------------
|
803
|
-
-----------------------------------------------------------------------------------------------------
|
804
|
-
PostPusher::Generators::InstallGeneratorTest: test_0002_skips the migration file if it already exists
|
805
|
-
-----------------------------------------------------------------------------------------------------
|
44
|
+
[1m[35m (18.2ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
45
|
+
[1m[35m (60.7ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
46
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
806
47
|
--------------------------------------------------------------------------
|
807
48
|
#runnable_tasks: test_0001_should only return tasks that have not been run
|
808
49
|
--------------------------------------------------------------------------
|
809
|
-
[1m[35m (
|
810
|
-
[1m[35m (
|
50
|
+
[1m[35m (16.3ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
51
|
+
[1m[35m (28.4ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
811
52
|
[1m[35m (0.3ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
812
|
-
-----------------------------------------------------------------------
|
813
|
-
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
814
|
-
-----------------------------------------------------------------------
|
815
|
-
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
816
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
817
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
818
|
-
--------------------------------------------------------------------------------------------------
|
819
|
-
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
820
|
-
--------------------------------------------------------------------------------------------------
|
821
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
822
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
823
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
824
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
825
|
-
---------------------------------------------------------
|
826
|
-
#work: test_0001_should not mark failed tasks as finished
|
827
|
-
---------------------------------------------------------
|
828
|
-
[1m[35m (0.4ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
829
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
830
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
831
|
-
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
832
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
833
53
|
-------------------------------------------------------------------------------
|
834
54
|
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
835
55
|
-------------------------------------------------------------------------------
|
836
|
-
[1m[35m (
|
837
|
-
[1m[35m (
|
838
|
-
---------------------------------------------------------------------
|
839
|
-
#completed_tasks: test_0001_should return tasks we know are completed
|
840
|
-
---------------------------------------------------------------------
|
841
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
842
|
-
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
843
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
844
|
-
------------------------------------------------------
|
845
|
-
happy path: test_0001_should log the rake tasks output
|
846
|
-
------------------------------------------------------
|
847
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
848
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.8ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
849
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
850
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
851
|
-
--------------------------------------------------------------------------------------------------
|
852
|
-
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
853
|
-
--------------------------------------------------------------------------------------------------
|
854
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
855
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
856
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
857
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
858
|
-
------------------------------------------------------
|
859
|
-
happy path: test_0001_should log the rake tasks output
|
860
|
-
------------------------------------------------------
|
861
|
-
---------------------------------------------------------------------
|
862
|
-
#completed_tasks: test_0001_should return tasks we know are completed
|
863
|
-
---------------------------------------------------------------------
|
864
|
-
[1m[35m (0.7ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
865
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
866
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
867
|
-
----------------------------------------------------------------------------------
|
868
|
-
PostPusher::Generators::InstallGeneratorTest: test_0001_creates the migration file
|
869
|
-
----------------------------------------------------------------------------------
|
870
|
-
-----------------------------------------------------------------------------------------------------
|
871
|
-
PostPusher::Generators::InstallGeneratorTest: test_0002_skips the migration file if it already exists
|
872
|
-
-----------------------------------------------------------------------------------------------------
|
56
|
+
[1m[35m (52.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
57
|
+
[1m[35m (19.4ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
873
58
|
----------------------------------------------------
|
874
59
|
broken tasks: test_0001_should also log busted tasks
|
875
60
|
----------------------------------------------------
|
876
|
-
---------------------------------------------------------
|
877
|
-
#work: test_0001_should not mark failed tasks as finished
|
878
|
-
---------------------------------------------------------
|
879
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
880
|
-
[1m[35m (1.4ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
881
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
882
|
-
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
883
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
884
|
-
--------------------------------------------------------------------------
|
885
|
-
#runnable_tasks: test_0001_should only return tasks that have not been run
|
886
|
-
--------------------------------------------------------------------------
|
887
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
888
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
889
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
890
|
-
-----------------------------------------------------------------------
|
891
|
-
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
892
|
-
-----------------------------------------------------------------------
|
893
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
894
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
895
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
896
|
-
-------------------------------------------------------------------------------
|
897
|
-
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
898
|
-
-------------------------------------------------------------------------------
|
899
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
900
|
-
[1m[35m (2.2ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
901
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
902
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
903
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
904
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
905
|
-
-------------------------------------------------------------------------------
|
906
|
-
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
907
|
-
-------------------------------------------------------------------------------
|
908
|
-
[1m[35m (0.7ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
909
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
910
|
-
---------------------------------------------------------------------
|
911
|
-
#completed_tasks: test_0001_should return tasks we know are completed
|
912
|
-
---------------------------------------------------------------------
|
913
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
914
|
-
[1m[35m (0.7ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
915
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
916
61
|
----------------------------------------------------------------------------------
|
917
62
|
PostPusher::Generators::InstallGeneratorTest: test_0001_creates the migration file
|
918
63
|
----------------------------------------------------------------------------------
|
919
64
|
-----------------------------------------------------------------------------------------------------
|
920
65
|
PostPusher::Generators::InstallGeneratorTest: test_0002_skips the migration file if it already exists
|
921
66
|
-----------------------------------------------------------------------------------------------------
|
922
|
-
--------------------------------------------------------------------------------------------------
|
923
|
-
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
924
|
-
--------------------------------------------------------------------------------------------------
|
925
|
-
[1m[35m (0.7ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
926
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
927
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
928
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
929
|
-
-----------------------------------------------------------------------
|
930
|
-
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
931
|
-
-----------------------------------------------------------------------
|
932
|
-
[1m[35m (0.4ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
933
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
934
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
935
|
-
--------------------------------------------------------------------------
|
936
|
-
#runnable_tasks: test_0001_should only return tasks that have not been run
|
937
|
-
--------------------------------------------------------------------------
|
938
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
939
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
940
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
941
|
-
---------------------------------------------------------
|
942
|
-
#work: test_0001_should not mark failed tasks as finished
|
943
|
-
---------------------------------------------------------
|
944
|
-
[1m[35m (0.5ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
945
|
-
[1m[35m (0.4ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
946
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
947
|
-
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
948
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
949
|
-
----------------------------------------------------
|
950
|
-
broken tasks: test_0001_should also log busted tasks
|
951
|
-
----------------------------------------------------
|
952
|
-
------------------------------------------------------
|
953
|
-
happy path: test_0001_should log the rake tasks output
|
954
|
-
------------------------------------------------------
|
955
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
956
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
957
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
958
|
-
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
959
|
-
-----------------------------------------------------------------------------------------------------
|
960
|
-
PostPusher::Generators::InstallGeneratorTest: test_0002_skips the migration file if it already exists
|
961
|
-
-----------------------------------------------------------------------------------------------------
|
962
|
-
----------------------------------------------------------------------------------
|
963
|
-
PostPusher::Generators::InstallGeneratorTest: test_0001_creates the migration file
|
964
|
-
----------------------------------------------------------------------------------
|
965
|
-
--------------------------------------------------------------------------
|
966
|
-
#runnable_tasks: test_0001_should only return tasks that have not been run
|
967
|
-
--------------------------------------------------------------------------
|
968
|
-
[1m[35m (0.7ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
969
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
970
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
971
|
-
-----------------------------------------------------------------------
|
972
|
-
#runnable_tasks: test_0002_should run the tasks in alphanumerical order
|
973
|
-
-----------------------------------------------------------------------
|
974
|
-
[1m[35m (0.8ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
975
|
-
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
976
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
977
|
-
--------------------------------------------------------------------------------------------------
|
978
|
-
#task_complete!: test_0001_should insert the rake task name into post_push_statuses when completed
|
979
|
-
--------------------------------------------------------------------------------------------------
|
980
|
-
[1m[35m (0.7ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
981
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
982
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:the_new_rake_task')[0m
|
983
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
984
|
-
----------------------------------------------------
|
985
|
-
broken tasks: test_0001_should also log busted tasks
|
986
|
-
----------------------------------------------------
|
987
67
|
---------------------------------------------------------
|
988
68
|
#work: test_0001_should not mark failed tasks as finished
|
989
69
|
---------------------------------------------------------
|
990
|
-
[1m[35m (
|
991
|
-
[1m[35m (
|
992
|
-
[1m[35m (0.
|
993
|
-
[1m[35m (
|
994
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
995
|
-
---------------------------------------------------------------------
|
996
|
-
#completed_tasks: test_0001_should return tasks we know are completed
|
997
|
-
---------------------------------------------------------------------
|
998
|
-
[1m[35m (0.6ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
999
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
70
|
+
[1m[35m (69.2ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
71
|
+
[1m[35m (68.0ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|
72
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
73
|
+
[1m[35m (73.1ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:3:runnable_task')[0m
|
1000
74
|
[1m[35m (0.1ms)[0m [1m[34mSELECT task_name from post_push_statuses[0m
|
1001
|
-
------------------------------------------------------
|
1002
|
-
happy path: test_0001_should log the rake tasks output
|
1003
|
-
------------------------------------------------------
|
1004
|
-
-------------------------------------------------------------------------------
|
1005
|
-
#post_push_tasks: test_0001_should only return tasks that start with post_push:
|
1006
|
-
-------------------------------------------------------------------------------
|
1007
|
-
[1m[35m (0.7ms)[0m [1m[31mDELETE FROM post_push_statuses[0m
|
1008
|
-
[1m[35m (0.5ms)[0m [1m[32mINSERT INTO post_push_statuses (task_name) VALUES ('post_push:2:completed_task')[0m
|