ragamuffins 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 944f852a0765aeefe753d09aba5d26c5a868fa66
|
4
|
+
data.tar.gz: ef0b390c5e1aad7f4761526b839ce8d60a7ac884
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f370bed23f99a0496a4e5821a054d7cb3c110d35eb0e8389f2e167a90b46931e365e70fea4c288a6143016ddef2ac45fdc9f73ba079ea04b28b72a3d2419dd2c
|
7
|
+
data.tar.gz: 7a9549d531567e13bb7c1be99504dc55d2c41fec06463e9189c27b44cfc1e508b0ef7d129603f46cf889a00961f868194fbe669228712f5397c1c5363e2f1179
|
@@ -10,7 +10,7 @@ module Ragamuffins
|
|
10
10
|
return [] if ids == nil || ids.empty?
|
11
11
|
# Because params are always strings, we double check that (the first to_s) and then make sure that we convert the ids to a string as well
|
12
12
|
# This allows us to make sure that we can handle UUIDs as well.
|
13
|
-
ids.collect{|s| s.to_s} - self.where("#{table_name}.id IN (?)", ids).pluck(
|
13
|
+
ids.collect{|s| s.to_s} - self.where("#{table_name}.id IN (?)", ids).pluck('CAST(id AS varchar)')
|
14
14
|
|
15
15
|
#
|
16
16
|
# if we were passed some ids that forms a bad query,
|
data/lib/ragamuffins/version.rb
CHANGED
Binary file
|
@@ -0,0 +1,328 @@
|
|
1
|
+
[1m[36m (2.0ms)[0m [1mCREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) [0m
|
2
|
+
[1m[35m (1.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
3
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
4
|
+
[1m[35m (1.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
6
|
+
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140415030524')
|
7
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
8
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
10
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.369556"], ["updated_at", "2015-09-11 05:11:01.369556"]]
|
11
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
12
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
13
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.373011"], ["updated_at", "2015-09-11 05:11:01.373011"]]
|
14
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
15
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
16
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
|
17
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
18
|
+
[1m[35m (0.1ms)[0m SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (2))
|
19
|
+
[1m[36m (1.6ms)[0m [1mrollback transaction[0m
|
20
|
+
[1m[35m (0.1ms)[0m begin transaction
|
21
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
22
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.420372"], ["updated_at", "2015-09-11 05:11:01.420372"]]
|
23
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
24
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
25
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.422592"], ["updated_at", "2015-09-11 05:11:01.422592"]]
|
26
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
27
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
28
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
|
29
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30
|
+
[1m[35m (0.1ms)[0m SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (1,2))
|
31
|
+
[1m[36m (1.4ms)[0m [1mrollback transaction[0m
|
32
|
+
[1m[35m (0.1ms)[0m begin transaction
|
33
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
34
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.428661"], ["updated_at", "2015-09-11 05:11:01.428661"]]
|
35
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
36
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
37
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.430603"], ["updated_at", "2015-09-11 05:11:01.430603"]]
|
38
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
39
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
40
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
|
41
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
42
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
43
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "test_models" WHERE "test_models"."id" = ?[0m [["id", 1]]
|
44
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
45
|
+
[1m[36m (0.2ms)[0m [1mSELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (2,1))[0m
|
46
|
+
[1m[35m (1.5ms)[0m rollback transaction
|
47
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
48
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
49
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.437422"], ["updated_at", "2015-09-11 05:11:01.437422"]]
|
50
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
51
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
52
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.438679"], ["updated_at", "2015-09-11 05:11:01.438679"]]
|
53
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
54
|
+
[1m[35m (0.1ms)[0m SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('1'))
|
55
|
+
[1m[36m (1.4ms)[0m [1mrollback transaction[0m
|
56
|
+
[1m[35m (0.1ms)[0m begin transaction
|
57
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
58
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.442523"], ["updated_at", "2015-09-11 05:11:01.442523"]]
|
59
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
60
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
61
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.444047"], ["updated_at", "2015-09-11 05:11:01.444047"]]
|
62
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
63
|
+
[1m[36m (0.1ms)[0m [1mSELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('1',2))[0m
|
64
|
+
[1m[35m (1.5ms)[0m rollback transaction
|
65
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
66
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
67
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.449516"], ["updated_at", "2015-09-11 05:11:01.449516"]]
|
68
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
69
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
70
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.451083"], ["updated_at", "2015-09-11 05:11:01.451083"]]
|
71
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
72
|
+
[1m[35m (0.1ms)[0m SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (1,2))
|
73
|
+
[1m[36m (1.4ms)[0m [1mrollback transaction[0m
|
74
|
+
[1m[35m (0.1ms)[0m begin transaction
|
75
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
76
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.455512"], ["updated_at", "2015-09-11 05:11:01.455512"]]
|
77
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
78
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
79
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.456994"], ["updated_at", "2015-09-11 05:11:01.456994"]]
|
80
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
81
|
+
[1m[36m (0.1ms)[0m [1mSELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (1))[0m
|
82
|
+
[1m[35m (1.4ms)[0m rollback transaction
|
83
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
85
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
86
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
87
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
88
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
89
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
90
|
+
[1m[35m (0.1ms)[0m begin transaction
|
91
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
92
|
+
[1m[35m (0.0ms)[0m begin transaction
|
93
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
94
|
+
[1m[35m (0.1ms)[0m begin transaction
|
95
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
96
|
+
[1m[35m (0.1ms)[0m begin transaction
|
97
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
98
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.898725"], ["updated_at", "2015-09-11 05:11:24.898725"]]
|
99
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
100
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
101
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.901919"], ["updated_at", "2015-09-11 05:11:24.901919"]]
|
102
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
103
|
+
[1m[36m (0.1ms)[0m [1mSELECT "test_models"."id" FROM "test_models" WHERE (test_models.id IN ('1',2))[0m
|
104
|
+
[1m[35m (1.6ms)[0m rollback transaction
|
105
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
106
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
107
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.920054"], ["updated_at", "2015-09-11 05:11:24.920054"]]
|
108
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
109
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
110
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.921800"], ["updated_at", "2015-09-11 05:11:24.921800"]]
|
111
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
112
|
+
[1m[35m (0.1ms)[0m SELECT "test_models"."id" FROM "test_models" WHERE (test_models.id IN (1))
|
113
|
+
[1m[36m (1.3ms)[0m [1mrollback transaction[0m
|
114
|
+
[1m[35m (0.1ms)[0m begin transaction
|
115
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
116
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.925778"], ["updated_at", "2015-09-11 05:11:24.925778"]]
|
117
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
118
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
119
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.927134"], ["updated_at", "2015-09-11 05:11:24.927134"]]
|
120
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
121
|
+
[1m[36m (0.2ms)[0m [1mSELECT "test_models"."id" FROM "test_models" WHERE (test_models.id IN ('1'))[0m
|
122
|
+
[1m[35m (1.9ms)[0m rollback transaction
|
123
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
124
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
125
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.934220"], ["updated_at", "2015-09-11 05:11:24.934220"]]
|
126
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
127
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
128
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.935980"], ["updated_at", "2015-09-11 05:11:24.935980"]]
|
129
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
130
|
+
[1m[35m (0.1ms)[0m SELECT "test_models"."id" FROM "test_models" WHERE (test_models.id IN (1,2))
|
131
|
+
[1m[36m (1.5ms)[0m [1mrollback transaction[0m
|
132
|
+
[1m[35m (0.1ms)[0m begin transaction
|
133
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
134
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.940748"], ["updated_at", "2015-09-11 05:11:24.940748"]]
|
135
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
136
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
137
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.944230"], ["updated_at", "2015-09-11 05:11:24.944230"]]
|
138
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
139
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
|
141
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
143
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "test_models" WHERE "test_models"."id" = ?[0m [["id", 1]]
|
144
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
145
|
+
[1m[36m (0.1ms)[0m [1mSELECT "test_models"."id" FROM "test_models" WHERE (test_models.id IN (2,1))[0m
|
146
|
+
[1m[35m (1.5ms)[0m rollback transaction
|
147
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
148
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
149
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.953148"], ["updated_at", "2015-09-11 05:11:24.953148"]]
|
150
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
151
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
152
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.954700"], ["updated_at", "2015-09-11 05:11:24.954700"]]
|
153
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
154
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
155
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "test_models" WHERE "test_models"."id" = ?[0m [["id", 2]]
|
156
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
157
|
+
[1m[36m (0.1ms)[0m [1mSELECT "test_models"."id" FROM "test_models" WHERE (test_models.id IN (2))[0m
|
158
|
+
[1m[35m (1.7ms)[0m rollback transaction
|
159
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
160
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
161
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.960073"], ["updated_at", "2015-09-11 05:11:24.960073"]]
|
162
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
163
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
164
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.961376"], ["updated_at", "2015-09-11 05:11:24.961376"]]
|
165
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
166
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
167
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "test_models" WHERE "test_models"."id" = ?[0m [["id", 2]]
|
168
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
169
|
+
[1m[36m (0.1ms)[0m [1mSELECT "test_models"."id" FROM "test_models" WHERE (test_models.id IN (1,2))[0m
|
170
|
+
[1m[35m (1.5ms)[0m rollback transaction
|
171
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
172
|
+
[1m[35m (0.1ms)[0m begin transaction
|
173
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
174
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.577644"], ["updated_at", "2015-09-11 05:12:35.577644"]]
|
175
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
176
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
177
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.580957"], ["updated_at", "2015-09-11 05:12:35.580957"]]
|
178
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
179
|
+
[1m[36m (0.1ms)[0m [1mSELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('1'))[0m
|
180
|
+
[1m[35m (1.6ms)[0m rollback transaction
|
181
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
182
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
183
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.585828"], ["updated_at", "2015-09-11 05:12:35.585828"]]
|
184
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
185
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
186
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.587327"], ["updated_at", "2015-09-11 05:12:35.587327"]]
|
187
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
188
|
+
[1m[35m (0.1ms)[0m SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (1))
|
189
|
+
[1m[36m (1.4ms)[0m [1mrollback transaction[0m
|
190
|
+
[1m[35m (0.1ms)[0m begin transaction
|
191
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
192
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.591553"], ["updated_at", "2015-09-11 05:12:35.591553"]]
|
193
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
194
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
195
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.592858"], ["updated_at", "2015-09-11 05:12:35.592858"]]
|
196
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
197
|
+
[1m[36m (0.1ms)[0m [1mSELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('1',2))[0m
|
198
|
+
[1m[35m (1.5ms)[0m rollback transaction
|
199
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
200
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
201
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.596786"], ["updated_at", "2015-09-11 05:12:35.596786"]]
|
202
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
203
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
204
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.598132"], ["updated_at", "2015-09-11 05:12:35.598132"]]
|
205
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
206
|
+
[1m[35m (0.1ms)[0m SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (1,2))
|
207
|
+
[1m[36m (1.6ms)[0m [1mrollback transaction[0m
|
208
|
+
[1m[35m (0.1ms)[0m begin transaction
|
209
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
210
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.602925"], ["updated_at", "2015-09-11 05:12:35.602925"]]
|
211
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
212
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
213
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.604489"], ["updated_at", "2015-09-11 05:12:35.604489"]]
|
214
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
215
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
216
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
|
217
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
218
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
219
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "test_models" WHERE "test_models"."id" = ?[0m [["id", 1]]
|
220
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
221
|
+
[1m[36m (0.2ms)[0m [1mSELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('2',1))[0m
|
222
|
+
[1m[35m (1.4ms)[0m rollback transaction
|
223
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
224
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
225
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.611339"], ["updated_at", "2015-09-11 05:12:35.611339"]]
|
226
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
227
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
228
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.613359"], ["updated_at", "2015-09-11 05:12:35.613359"]]
|
229
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
230
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
231
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "test_models" WHERE "test_models"."id" = ?[0m [["id", 2]]
|
232
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
233
|
+
[1m[36m (0.1ms)[0m [1mSELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (1,'2'))[0m
|
234
|
+
[1m[35m (1.4ms)[0m rollback transaction
|
235
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
236
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
237
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.619334"], ["updated_at", "2015-09-11 05:12:35.619334"]]
|
238
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
239
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
240
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.622682"], ["updated_at", "2015-09-11 05:12:35.622682"]]
|
241
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
242
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
243
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "test_models" WHERE "test_models"."id" = ?[0m [["id", 2]]
|
244
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
245
|
+
[1m[36m (0.1ms)[0m [1mSELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('2'))[0m
|
246
|
+
[1m[35m (1.5ms)[0m rollback transaction
|
247
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
248
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
249
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
250
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
251
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
252
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
253
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
254
|
+
[1m[35m (0.1ms)[0m begin transaction
|
255
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
256
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.861506"], ["updated_at", "2015-09-11 05:13:23.861506"]]
|
257
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
258
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
259
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.864787"], ["updated_at", "2015-09-11 05:13:23.864787"]]
|
260
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
261
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
262
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
|
263
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
264
|
+
[1m[35m (0.2ms)[0m SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (1,'2'))
|
265
|
+
[1m[36m (1.3ms)[0m [1mrollback transaction[0m
|
266
|
+
[1m[35m (0.1ms)[0m begin transaction
|
267
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
268
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.871300"], ["updated_at", "2015-09-11 05:13:23.871300"]]
|
269
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
270
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
271
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.872645"], ["updated_at", "2015-09-11 05:13:23.872645"]]
|
272
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
273
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
274
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
|
275
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
276
|
+
[1m[35m (0.1ms)[0m SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('2'))
|
277
|
+
[1m[36m (1.2ms)[0m [1mrollback transaction[0m
|
278
|
+
[1m[35m (0.1ms)[0m begin transaction
|
279
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
280
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.876719"], ["updated_at", "2015-09-11 05:13:23.876719"]]
|
281
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
282
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
283
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.878267"], ["updated_at", "2015-09-11 05:13:23.878267"]]
|
284
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
285
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
286
|
+
[1m[35mSQL (0.0ms)[0m DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
|
287
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
288
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
289
|
+
[1m[36mSQL (0.0ms)[0m [1mDELETE FROM "test_models" WHERE "test_models"."id" = ?[0m [["id", 1]]
|
290
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
291
|
+
[1m[36m (0.1ms)[0m [1mSELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('2',1))[0m
|
292
|
+
[1m[35m (1.5ms)[0m rollback transaction
|
293
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
294
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
295
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.883933"], ["updated_at", "2015-09-11 05:13:23.883933"]]
|
296
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
297
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
298
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.885393"], ["updated_at", "2015-09-11 05:13:23.885393"]]
|
299
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
300
|
+
[1m[35m (0.2ms)[0m SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('1',2))
|
301
|
+
[1m[36m (1.5ms)[0m [1mrollback transaction[0m
|
302
|
+
[1m[35m (0.1ms)[0m begin transaction
|
303
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
304
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.890644"], ["updated_at", "2015-09-11 05:13:23.890644"]]
|
305
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
306
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
307
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.892536"], ["updated_at", "2015-09-11 05:13:23.892536"]]
|
308
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
309
|
+
[1m[36m (0.1ms)[0m [1mSELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('1'))[0m
|
310
|
+
[1m[35m (1.5ms)[0m rollback transaction
|
311
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
312
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
313
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.896889"], ["updated_at", "2015-09-11 05:13:23.896889"]]
|
314
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
315
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
316
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.898130"], ["updated_at", "2015-09-11 05:13:23.898130"]]
|
317
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
318
|
+
[1m[35m (0.1ms)[0m SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (1))
|
319
|
+
[1m[36m (1.5ms)[0m [1mrollback transaction[0m
|
320
|
+
[1m[35m (0.3ms)[0m begin transaction
|
321
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
322
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.904556"], ["updated_at", "2015-09-11 05:13:23.904556"]]
|
323
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
324
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
325
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.907600"], ["updated_at", "2015-09-11 05:13:23.907600"]]
|
326
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
327
|
+
[1m[36m (0.1ms)[0m [1mSELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (1,2))[0m
|
328
|
+
[1m[35m (1.4ms)[0m rollback transaction
|
@@ -2,28 +2,6 @@ require_relative '../spec_helper'
|
|
2
2
|
|
3
3
|
describe TestModel do
|
4
4
|
|
5
|
-
|
6
|
-
# I am new to Mocking. So just wanted to make sure that it worked like I expected it to.
|
7
|
-
describe "Mocking" do
|
8
|
-
let(:my_model) do
|
9
|
-
mock_model TestModel, id: 1,
|
10
|
-
name: "My Name",
|
11
|
-
about: "About Me"
|
12
|
-
end
|
13
|
-
it "assigns the ID" do
|
14
|
-
expect(my_model.id).to eq 1
|
15
|
-
end
|
16
|
-
|
17
|
-
it "assigns the name" do
|
18
|
-
expect(my_model.name).to eq "My Name"
|
19
|
-
end
|
20
|
-
|
21
|
-
it "assigns the about" do
|
22
|
-
expect(my_model.about).to eq "About Me"
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
|
27
5
|
describe "Deleted IDs" do
|
28
6
|
before :each do
|
29
7
|
@model1 = FactoryGirl.create(:test_model)
|
@@ -55,7 +33,7 @@ describe TestModel do
|
|
55
33
|
|
56
34
|
context "When some ids have been deleted" do
|
57
35
|
before :each do
|
58
|
-
@deleted_id = @model2.id
|
36
|
+
@deleted_id = @model2.id.to_s
|
59
37
|
@model2.destroy!
|
60
38
|
end
|
61
39
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ragamuffins
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Isaac Norman
|
@@ -136,6 +136,8 @@ files:
|
|
136
136
|
- spec/dummy/config/routes.rb
|
137
137
|
- spec/dummy/config/secrets.yml
|
138
138
|
- spec/dummy/db/schema.rb
|
139
|
+
- spec/dummy/db/test.sqlite3
|
140
|
+
- spec/dummy/log/test.log
|
139
141
|
- spec/dummy/public/404.html
|
140
142
|
- spec/dummy/public/422.html
|
141
143
|
- spec/dummy/public/500.html
|
@@ -194,6 +196,8 @@ test_files:
|
|
194
196
|
- spec/dummy/config/secrets.yml
|
195
197
|
- spec/dummy/config.ru
|
196
198
|
- spec/dummy/db/schema.rb
|
199
|
+
- spec/dummy/db/test.sqlite3
|
200
|
+
- spec/dummy/log/test.log
|
197
201
|
- spec/dummy/public/404.html
|
198
202
|
- spec/dummy/public/422.html
|
199
203
|
- spec/dummy/public/500.html
|