after_commit_queue 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +39 -0
- data/lib/after_commit_queue/version.rb +3 -0
- data/lib/after_commit_queue.rb +30 -0
- data/lib/tasks/after_commit_queue_tasks.rake +4 -0
- data/test/after_commit_queue_test.rb +27 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/server.rb +23 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20120622135717_create_servers.rb +8 -0
- data/test/dummy/db/schema.rb +22 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +31 -0
- data/test/dummy/log/test.log +272 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/fixtures/servers.yml +7 -0
- data/test/dummy/test/unit/server_test.rb +7 -0
- data/test/test_helper.rb +18 -0
- metadata +168 -0
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended to check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(:version => 20120622135717) do
|
15
|
+
|
16
|
+
create_table "servers", :force => true do |t|
|
17
|
+
t.string "state"
|
18
|
+
t.datetime "created_at", :null => false
|
19
|
+
t.datetime "updated_at", :null => false
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
Binary file
|
@@ -0,0 +1,31 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
Connecting to database specified by database.yml
|
3
|
+
Connecting to database specified by database.yml
|
4
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
5
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
6
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
7
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
8
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
9
|
+
Migrating to CreateServers (20120622135717)
|
10
|
+
[1m[35m (0.0ms)[0m begin transaction
|
11
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
12
|
+
[1m[35m (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20120622135717')
|
13
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
14
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
15
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
16
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("servers")
|
17
|
+
Connecting to database specified by database.yml
|
18
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
19
|
+
Migrating to CreateServers (20120622135717)
|
20
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
21
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
22
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("servers")
|
23
|
+
Connecting to database specified by database.yml
|
24
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
25
|
+
[1m[35m (0.2ms)[0m select sqlite_version(*)
|
26
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) [0m
|
27
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
28
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
29
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
30
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
31
|
+
[1m[35m (1.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120622135717')
|
@@ -0,0 +1,272 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4
|
+
Connecting to database specified by database.yml
|
5
|
+
Connecting to database specified by database.yml
|
6
|
+
Connecting to database specified by database.yml
|
7
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
8
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
9
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
10
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11
|
+
Connecting to database specified by database.yml
|
12
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
13
|
+
[1m[35m (1.6ms)[0m SAVEPOINT active_record_1
|
14
|
+
[1m[36mSQL (5.6ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:26:15 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:26:15 UTC +00:00]]
|
15
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
16
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
17
|
+
[1m[35m (0.1ms)[0m begin transaction
|
18
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
19
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:26:15 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:26:15 UTC +00:00]]
|
20
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
21
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
22
|
+
Connecting to database specified by database.yml
|
23
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
24
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
25
|
+
[1m[36mSQL (3.7ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:26:35 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:26:35 UTC +00:00]]
|
26
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
27
|
+
[1m[36m (1.6ms)[0m [1mrollback transaction[0m
|
28
|
+
[1m[35m (0.1ms)[0m begin transaction
|
29
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
30
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:26:35 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:26:35 UTC +00:00]]
|
31
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
32
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
33
|
+
Connecting to database specified by database.yml
|
34
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
35
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
36
|
+
[1m[36mSQL (3.1ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:32:50 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:32:50 UTC +00:00]]
|
37
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
38
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
39
|
+
[1m[35m (0.3ms)[0m UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:32:50.318470' WHERE "servers"."id" = 1
|
40
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
41
|
+
[1m[35m (1.6ms)[0m rollback transaction
|
42
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
43
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
44
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:32:50 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:32:50 UTC +00:00]]
|
45
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
46
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
47
|
+
Connecting to database specified by database.yml
|
48
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
49
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
50
|
+
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:33:50 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:33:50 UTC +00:00]]
|
51
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
52
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
53
|
+
[1m[35m (0.4ms)[0m UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:33:50.364494' WHERE "servers"."id" = 1
|
54
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
55
|
+
[1m[35m (1.4ms)[0m rollback transaction
|
56
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
58
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:33:50 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:33:50 UTC +00:00]]
|
59
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
60
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
61
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
62
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
63
|
+
Connecting to database specified by database.yml
|
64
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
65
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
66
|
+
[1m[36mSQL (3.1ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:34:22 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:22 UTC +00:00]]
|
67
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
68
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
69
|
+
[1m[35m (0.3ms)[0m UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:34:22.376388' WHERE "servers"."id" = 1
|
70
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
71
|
+
[1m[35m (1.6ms)[0m rollback transaction
|
72
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
73
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
74
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:34:22 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:22 UTC +00:00]]
|
75
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
76
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
77
|
+
Connecting to database specified by database.yml
|
78
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
79
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
80
|
+
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:34:33 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:33 UTC +00:00]]
|
81
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
82
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
83
|
+
[1m[35m (0.3ms)[0m UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:34:33.777347' WHERE "servers"."id" = 1
|
84
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
85
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
86
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
87
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
88
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:34:33 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:33 UTC +00:00]]
|
89
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
90
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
91
|
+
Connecting to database specified by database.yml
|
92
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
93
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
94
|
+
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:34:50 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:50 UTC +00:00]]
|
95
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
96
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
97
|
+
[1m[35m (0.3ms)[0m UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:34:50.157970' WHERE "servers"."id" = 1
|
98
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
99
|
+
[1m[35m (1.6ms)[0m rollback transaction
|
100
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
101
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
102
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:34:50 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:50 UTC +00:00]]
|
103
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
104
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
105
|
+
Connecting to database specified by database.yml
|
106
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
107
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
108
|
+
[1m[36mSQL (4.1ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:34:58 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:58 UTC +00:00]]
|
109
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
110
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
111
|
+
[1m[35m (0.3ms)[0m UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:34:58.016351' WHERE "servers"."id" = 1
|
112
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
113
|
+
[1m[35m (1.4ms)[0m rollback transaction
|
114
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
115
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
116
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:34:58 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:58 UTC +00:00]]
|
117
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
118
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
119
|
+
Connecting to database specified by database.yml
|
120
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
121
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
122
|
+
[1m[36mSQL (3.0ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:36:42 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:36:42 UTC +00:00]]
|
123
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
124
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
125
|
+
[1m[35m (0.3ms)[0m UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:36:42.874011' WHERE "servers"."id" = 1
|
126
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
127
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
128
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
129
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
130
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:36:42 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:36:42 UTC +00:00]]
|
131
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
132
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
133
|
+
Connecting to database specified by database.yml
|
134
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
135
|
+
[1m[35mSQL (3.2ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:37:40 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:37:40 UTC +00:00]]
|
136
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
137
|
+
[1m[35m (0.1ms)[0m begin transaction
|
138
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:37:40.555853' WHERE "servers"."id" = 1[0m
|
139
|
+
[1m[35m (0.8ms)[0m commit transaction
|
140
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
141
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:37:40 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:37:40 UTC +00:00]]
|
142
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
143
|
+
Connecting to database specified by database.yml
|
144
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
145
|
+
[1m[35mSQL (3.1ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:37:52 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:37:52 UTC +00:00]]
|
146
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
147
|
+
[1m[35m (0.1ms)[0m begin transaction
|
148
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:37:52.895872' WHERE "servers"."id" = 3[0m
|
149
|
+
[1m[35m (1.0ms)[0m commit transaction
|
150
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
151
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:37:52 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:37:52 UTC +00:00]]
|
152
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
153
|
+
Connecting to database specified by database.yml
|
154
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
155
|
+
[1m[35mSQL (3.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:38:31 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:38:31 UTC +00:00]]
|
156
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
157
|
+
[1m[35m (0.1ms)[0m begin transaction
|
158
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:38:31.039058' WHERE "servers"."id" = 5[0m
|
159
|
+
[1m[35m (1.0ms)[0m commit transaction
|
160
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
161
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:38:31 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:38:31 UTC +00:00]]
|
162
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
163
|
+
Connecting to database specified by database.yml
|
164
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
165
|
+
[1m[35mSQL (5.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:46:01 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:46:01 UTC +00:00]]
|
166
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
167
|
+
[1m[35m (0.0ms)[0m begin transaction
|
168
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:46:02.001583' WHERE "servers"."id" = 7[0m
|
169
|
+
[1m[35m (0.8ms)[0m commit transaction
|
170
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
171
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:46:02 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:46:02 UTC +00:00]]
|
172
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
173
|
+
Connecting to database specified by database.yml
|
174
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
175
|
+
[1m[35mSQL (3.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:46:44 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:46:44 UTC +00:00]]
|
176
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
177
|
+
[1m[35m (0.0ms)[0m begin transaction
|
178
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:46:44.233785' WHERE "servers"."id" = 9[0m
|
179
|
+
[1m[35m (0.8ms)[0m commit transaction
|
180
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
181
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:46:44 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:46:44 UTC +00:00]]
|
182
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
183
|
+
Connecting to database specified by database.yml
|
184
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
185
|
+
[1m[35mSQL (3.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:48:42 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:48:42 UTC +00:00]]
|
186
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
187
|
+
[1m[35m (0.0ms)[0m begin transaction
|
188
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2012-06-22 14:48:42.577921' WHERE "servers"."id" = 11[0m
|
189
|
+
[1m[35m (0.6ms)[0m commit transaction
|
190
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
191
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:48:42 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:48:42 UTC +00:00]]
|
192
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
193
|
+
Connecting to database specified by database.yml
|
194
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
195
|
+
[1m[35mSQL (3.2ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:49:15 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:49:15 UTC +00:00]]
|
196
|
+
[1m[36m (1.7ms)[0m [1mcommit transaction[0m
|
197
|
+
[1m[35m (0.0ms)[0m begin transaction
|
198
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2012-06-22 14:49:15.132299' WHERE "servers"."id" = 13[0m
|
199
|
+
[1m[35m (1.1ms)[0m commit transaction
|
200
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
201
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:49:15 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:49:15 UTC +00:00]]
|
202
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
203
|
+
Connecting to database specified by database.yml
|
204
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
205
|
+
[1m[35mSQL (3.9ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:49:22 UTC +00:00], ["state", "pending"], ["updated_at", Fri, 22 Jun 2012 14:49:22 UTC +00:00]]
|
206
|
+
[1m[36m (2.0ms)[0m [1mcommit transaction[0m
|
207
|
+
[1m[35m (0.0ms)[0m begin transaction
|
208
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "servers" SET "state" = 'running', "updated_at" = '2012-06-22 14:49:22.969116' WHERE "servers"."id" = 15[0m
|
209
|
+
[1m[35m (1.0ms)[0m commit transaction
|
210
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
211
|
+
[1m[35m (0.2ms)[0m UPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2012-06-22 14:49:22.972534' WHERE "servers"."id" = 15
|
212
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
213
|
+
[1m[35m (0.0ms)[0m begin transaction
|
214
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 14:49:22 UTC +00:00], ["state", "pending"], ["updated_at", Fri, 22 Jun 2012 14:49:22 UTC +00:00]]
|
215
|
+
[1m[35m (0.9ms)[0m commit transaction
|
216
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
217
|
+
[1m[35m (0.3ms)[0m UPDATE "servers" SET "state" = 'running', "updated_at" = '2012-06-22 14:49:22.977939' WHERE "servers"."id" = 16
|
218
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
219
|
+
Connecting to database specified by database.yml
|
220
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
221
|
+
[1m[35mSQL (6.1ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:18:36 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:18:36 UTC +00:00]]
|
222
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
223
|
+
[1m[35m (0.0ms)[0m begin transaction
|
224
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2012-06-22 15:18:36.399920' WHERE "servers"."id" = 17[0m
|
225
|
+
[1m[35m (0.6ms)[0m commit transaction
|
226
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
227
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:18:36 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:18:36 UTC +00:00]]
|
228
|
+
[1m[36m (0.6ms)[0m [1mcommit transaction[0m
|
229
|
+
Connecting to database specified by database.yml
|
230
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
231
|
+
[1m[35mSQL (2.8ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:19:07 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:19:07 UTC +00:00]]
|
232
|
+
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
|
233
|
+
[1m[35m (0.0ms)[0m begin transaction
|
234
|
+
[1m[36m (0.2ms)[0m [1mUPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2012-06-22 15:19:07.087702' WHERE "servers"."id" = 19[0m
|
235
|
+
[1m[35m (0.9ms)[0m commit transaction
|
236
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
237
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:19:07 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:19:07 UTC +00:00]]
|
238
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
239
|
+
Connecting to database specified by database.yml
|
240
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
241
|
+
[1m[35mSQL (10.0ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:21:33 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:21:33 UTC +00:00]]
|
242
|
+
[1m[36m (3.3ms)[0m [1mcommit transaction[0m
|
243
|
+
[1m[35m (0.0ms)[0m begin transaction
|
244
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2012-06-22 15:21:33.954780' WHERE "servers"."id" = 21[0m
|
245
|
+
[1m[35m (1.1ms)[0m commit transaction
|
246
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
247
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:21:33 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:21:33 UTC +00:00]]
|
248
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
249
|
+
Connecting to database specified by database.yml
|
250
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
251
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
252
|
+
[1m[36mSQL (5.4ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 15:21:45 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:21:45 UTC +00:00]]
|
253
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
254
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
255
|
+
[1m[35m (0.5ms)[0m UPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2012-06-22 15:21:45.041318' WHERE "servers"."id" = 23
|
256
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
257
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
258
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
259
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
260
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Fri, 22 Jun 2012 15:21:45 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:21:45 UTC +00:00]]
|
261
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
262
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
263
|
+
Connecting to database specified by database.yml
|
264
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
265
|
+
[1m[35mSQL (7.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:35:43 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:35:43 UTC +00:00]]
|
266
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
267
|
+
[1m[35m (0.0ms)[0m begin transaction
|
268
|
+
[1m[36m (0.3ms)[0m [1mUPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2012-06-22 15:35:43.917293' WHERE "servers"."id" = 23[0m
|
269
|
+
[1m[35m (0.6ms)[0m commit transaction
|
270
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
271
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:35:43 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:35:43 UTC +00:00]]
|
272
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# We use transactions in tests
|
13
|
+
ActiveSupport::TestCase.use_transactional_fixtures = false
|
14
|
+
|
15
|
+
# Load fixtures from the engine
|
16
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
17
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
18
|
+
end
|