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: cfe142ef82e7fb26ac3ab6d9904552fbd5a63c62
4
- data.tar.gz: 45a9e869bc1548c4f2f1f598c144b7fa66123ea9
3
+ metadata.gz: 944f852a0765aeefe753d09aba5d26c5a868fa66
4
+ data.tar.gz: ef0b390c5e1aad7f4761526b839ce8d60a7ac884
5
5
  SHA512:
6
- metadata.gz: 5a3cb3f350cccb213f69e25ca5cbd83aeb7c9bfea9d484d407c73a7d144398ca17403909423f6b4912751c2ae1f42788975926daba0bb23a38215a84618da5a6
7
- data.tar.gz: 46fb047fa962418a1c4e0b7a178b0a19ac01fc3fb61b8edbd0c3155dfdce8b9bb17d188085fcb5f1eef1a574c697f4f185ae05c821901584643e32365db8ca48
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(:id).map(&:to_s)
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,
@@ -1,3 +1,3 @@
1
1
  module Ragamuffins
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
3
3
  end
Binary file
@@ -0,0 +1,328 @@
1
+  (2.0ms) CREATE TABLE "test_models" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) 
2
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
3
+  (0.1ms) select sqlite_version(*)
4
+  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
5
+  (0.1ms) SELECT version FROM "schema_migrations"
6
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20140415030524')
7
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
8
+  (0.1ms) begin transaction
9
+  (0.0ms) SAVEPOINT active_record_1
10
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
12
+  (0.0ms) SAVEPOINT active_record_1
13
+ SQL (0.3ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.373011"], ["updated_at", "2015-09-11 05:11:01.373011"]]
14
+  (0.0ms) RELEASE SAVEPOINT active_record_1
15
+  (0.0ms) SAVEPOINT active_record_1
16
+ SQL (0.1ms) DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
17
+  (0.0ms) RELEASE SAVEPOINT active_record_1
18
+  (0.1ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (2))
19
+  (1.6ms) rollback transaction
20
+  (0.1ms) begin transaction
21
+  (0.1ms) SAVEPOINT active_record_1
22
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
24
+  (0.1ms) SAVEPOINT active_record_1
25
+ SQL (0.3ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.422592"], ["updated_at", "2015-09-11 05:11:01.422592"]]
26
+  (0.1ms) RELEASE SAVEPOINT active_record_1
27
+  (0.0ms) SAVEPOINT active_record_1
28
+ SQL (0.1ms) DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
29
+  (0.0ms) RELEASE SAVEPOINT active_record_1
30
+  (0.1ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (1,2))
31
+  (1.4ms) rollback transaction
32
+  (0.1ms) begin transaction
33
+  (0.0ms) SAVEPOINT active_record_1
34
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
36
+  (0.1ms) SAVEPOINT active_record_1
37
+ SQL (0.4ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.430603"], ["updated_at", "2015-09-11 05:11:01.430603"]]
38
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39
+  (0.0ms) SAVEPOINT active_record_1
40
+ SQL (0.1ms) DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
41
+  (0.0ms) RELEASE SAVEPOINT active_record_1
42
+  (0.0ms) SAVEPOINT active_record_1
43
+ SQL (0.1ms) DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 1]]
44
+  (0.0ms) RELEASE SAVEPOINT active_record_1
45
+  (0.2ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (2,1))
46
+  (1.5ms) rollback transaction
47
+  (0.1ms) begin transaction
48
+  (0.0ms) SAVEPOINT active_record_1
49
+ SQL (0.2ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.437422"], ["updated_at", "2015-09-11 05:11:01.437422"]]
50
+  (0.0ms) RELEASE SAVEPOINT active_record_1
51
+  (0.0ms) SAVEPOINT active_record_1
52
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
54
+  (0.1ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('1'))
55
+  (1.4ms) rollback transaction
56
+  (0.1ms) begin transaction
57
+  (0.0ms) SAVEPOINT active_record_1
58
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60
+  (0.0ms) SAVEPOINT active_record_1
61
+ SQL (0.3ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.444047"], ["updated_at", "2015-09-11 05:11:01.444047"]]
62
+  (0.1ms) RELEASE SAVEPOINT active_record_1
63
+  (0.1ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('1',2))
64
+  (1.5ms) rollback transaction
65
+  (0.1ms) begin transaction
66
+  (0.1ms) SAVEPOINT active_record_1
67
+ SQL (0.2ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.449516"], ["updated_at", "2015-09-11 05:11:01.449516"]]
68
+  (0.0ms) RELEASE SAVEPOINT active_record_1
69
+  (0.0ms) SAVEPOINT active_record_1
70
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
72
+  (0.1ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (1,2))
73
+  (1.4ms) rollback transaction
74
+  (0.1ms) begin transaction
75
+  (0.1ms) SAVEPOINT active_record_1
76
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
78
+  (0.0ms) SAVEPOINT active_record_1
79
+ SQL (0.3ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:01.456994"], ["updated_at", "2015-09-11 05:11:01.456994"]]
80
+  (0.0ms) RELEASE SAVEPOINT active_record_1
81
+  (0.1ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (1))
82
+  (1.4ms) rollback transaction
83
+  (0.1ms) begin transaction
84
+  (0.0ms) rollback transaction
85
+  (0.1ms) begin transaction
86
+  (0.0ms) rollback transaction
87
+  (0.1ms) begin transaction
88
+  (0.1ms) rollback transaction
89
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
90
+  (0.1ms) begin transaction
91
+  (0.0ms) rollback transaction
92
+  (0.0ms) begin transaction
93
+  (0.0ms) rollback transaction
94
+  (0.1ms) begin transaction
95
+  (0.0ms) rollback transaction
96
+  (0.1ms) begin transaction
97
+  (0.1ms) SAVEPOINT active_record_1
98
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
100
+  (0.0ms) SAVEPOINT active_record_1
101
+ SQL (0.3ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.901919"], ["updated_at", "2015-09-11 05:11:24.901919"]]
102
+  (0.1ms) RELEASE SAVEPOINT active_record_1
103
+  (0.1ms) SELECT "test_models"."id" FROM "test_models" WHERE (test_models.id IN ('1',2))
104
+  (1.6ms) rollback transaction
105
+  (0.1ms) begin transaction
106
+  (0.0ms) SAVEPOINT active_record_1
107
+ SQL (0.3ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.920054"], ["updated_at", "2015-09-11 05:11:24.920054"]]
108
+  (0.0ms) RELEASE SAVEPOINT active_record_1
109
+  (0.0ms) SAVEPOINT active_record_1
110
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
112
+  (0.1ms) SELECT "test_models"."id" FROM "test_models" WHERE (test_models.id IN (1))
113
+  (1.3ms) rollback transaction
114
+  (0.1ms) begin transaction
115
+  (0.0ms) SAVEPOINT active_record_1
116
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
118
+  (0.0ms) SAVEPOINT active_record_1
119
+ SQL (0.3ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.927134"], ["updated_at", "2015-09-11 05:11:24.927134"]]
120
+  (0.1ms) RELEASE SAVEPOINT active_record_1
121
+  (0.2ms) SELECT "test_models"."id" FROM "test_models" WHERE (test_models.id IN ('1'))
122
+  (1.9ms) rollback transaction
123
+  (0.1ms) begin transaction
124
+  (0.1ms) SAVEPOINT active_record_1
125
+ SQL (0.3ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.934220"], ["updated_at", "2015-09-11 05:11:24.934220"]]
126
+  (0.1ms) RELEASE SAVEPOINT active_record_1
127
+  (0.0ms) SAVEPOINT active_record_1
128
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
130
+  (0.1ms) SELECT "test_models"."id" FROM "test_models" WHERE (test_models.id IN (1,2))
131
+  (1.5ms) rollback transaction
132
+  (0.1ms) begin transaction
133
+  (0.0ms) SAVEPOINT active_record_1
134
+ SQL (0.4ms) 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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
136
+  (0.2ms) SAVEPOINT active_record_1
137
+ SQL (0.9ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.944230"], ["updated_at", "2015-09-11 05:11:24.944230"]]
138
+  (0.3ms) RELEASE SAVEPOINT active_record_1
139
+  (0.1ms) SAVEPOINT active_record_1
140
+ SQL (0.1ms) DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
142
+  (0.0ms) SAVEPOINT active_record_1
143
+ SQL (0.0ms) DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 1]]
144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
145
+  (0.1ms) SELECT "test_models"."id" FROM "test_models" WHERE (test_models.id IN (2,1))
146
+  (1.5ms) rollback transaction
147
+  (0.1ms) begin transaction
148
+  (0.1ms) SAVEPOINT active_record_1
149
+ SQL (0.2ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.953148"], ["updated_at", "2015-09-11 05:11:24.953148"]]
150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
151
+  (0.0ms) SAVEPOINT active_record_1
152
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
154
+  (0.0ms) SAVEPOINT active_record_1
155
+ SQL (0.0ms) DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
156
+  (0.0ms) RELEASE SAVEPOINT active_record_1
157
+  (0.1ms) SELECT "test_models"."id" FROM "test_models" WHERE (test_models.id IN (2))
158
+  (1.7ms) rollback transaction
159
+  (0.1ms) begin transaction
160
+  (0.0ms) SAVEPOINT active_record_1
161
+ SQL (0.2ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:11:24.960073"], ["updated_at", "2015-09-11 05:11:24.960073"]]
162
+  (0.0ms) RELEASE SAVEPOINT active_record_1
163
+  (0.0ms) SAVEPOINT active_record_1
164
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
166
+  (0.0ms) SAVEPOINT active_record_1
167
+ SQL (0.0ms) DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
168
+  (0.0ms) RELEASE SAVEPOINT active_record_1
169
+  (0.1ms) SELECT "test_models"."id" FROM "test_models" WHERE (test_models.id IN (1,2))
170
+  (1.5ms) rollback transaction
171
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
172
+  (0.1ms) begin transaction
173
+  (0.1ms) SAVEPOINT active_record_1
174
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
176
+  (0.0ms) SAVEPOINT active_record_1
177
+ SQL (0.3ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.580957"], ["updated_at", "2015-09-11 05:12:35.580957"]]
178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
179
+  (0.1ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('1'))
180
+  (1.6ms) rollback transaction
181
+  (0.1ms) begin transaction
182
+  (0.1ms) SAVEPOINT active_record_1
183
+ SQL (0.3ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.585828"], ["updated_at", "2015-09-11 05:12:35.585828"]]
184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
185
+  (0.0ms) SAVEPOINT active_record_1
186
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
188
+  (0.1ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (1))
189
+  (1.4ms) rollback transaction
190
+  (0.1ms) begin transaction
191
+  (0.0ms) SAVEPOINT active_record_1
192
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
194
+  (0.1ms) SAVEPOINT active_record_1
195
+ SQL (0.3ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.592858"], ["updated_at", "2015-09-11 05:12:35.592858"]]
196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
197
+  (0.1ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('1',2))
198
+  (1.5ms) rollback transaction
199
+  (0.1ms) begin transaction
200
+  (0.0ms) SAVEPOINT active_record_1
201
+ SQL (0.2ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.596786"], ["updated_at", "2015-09-11 05:12:35.596786"]]
202
+  (0.0ms) RELEASE SAVEPOINT active_record_1
203
+  (0.0ms) SAVEPOINT active_record_1
204
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
206
+  (0.1ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (1,2))
207
+  (1.6ms) rollback transaction
208
+  (0.1ms) begin transaction
209
+  (0.0ms) SAVEPOINT active_record_1
210
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
212
+  (0.0ms) SAVEPOINT active_record_1
213
+ SQL (0.3ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.604489"], ["updated_at", "2015-09-11 05:12:35.604489"]]
214
+  (0.1ms) RELEASE SAVEPOINT active_record_1
215
+  (0.0ms) SAVEPOINT active_record_1
216
+ SQL (0.2ms) DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
217
+  (0.1ms) RELEASE SAVEPOINT active_record_1
218
+  (0.1ms) SAVEPOINT active_record_1
219
+ SQL (0.1ms) DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 1]]
220
+  (0.1ms) RELEASE SAVEPOINT active_record_1
221
+  (0.2ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('2',1))
222
+  (1.4ms) rollback transaction
223
+  (0.1ms) begin transaction
224
+  (0.0ms) SAVEPOINT active_record_1
225
+ SQL (0.3ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.611339"], ["updated_at", "2015-09-11 05:12:35.611339"]]
226
+  (0.1ms) RELEASE SAVEPOINT active_record_1
227
+  (0.1ms) SAVEPOINT active_record_1
228
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
230
+  (0.0ms) SAVEPOINT active_record_1
231
+ SQL (0.0ms) DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
232
+  (0.0ms) RELEASE SAVEPOINT active_record_1
233
+  (0.1ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (1,'2'))
234
+  (1.4ms) rollback transaction
235
+  (0.1ms) begin transaction
236
+  (0.1ms) SAVEPOINT active_record_1
237
+ SQL (0.5ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:12:35.619334"], ["updated_at", "2015-09-11 05:12:35.619334"]]
238
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239
+  (0.2ms) SAVEPOINT active_record_1
240
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
242
+  (0.0ms) SAVEPOINT active_record_1
243
+ SQL (0.0ms) DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
244
+  (0.1ms) RELEASE SAVEPOINT active_record_1
245
+  (0.1ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('2'))
246
+  (1.5ms) rollback transaction
247
+  (0.1ms) begin transaction
248
+  (0.0ms) rollback transaction
249
+  (0.1ms) begin transaction
250
+  (0.0ms) rollback transaction
251
+  (0.0ms) begin transaction
252
+  (0.0ms) rollback transaction
253
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
254
+  (0.1ms) begin transaction
255
+  (0.0ms) SAVEPOINT active_record_1
256
+ SQL (0.4ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
258
+  (0.0ms) SAVEPOINT active_record_1
259
+ SQL (0.4ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.864787"], ["updated_at", "2015-09-11 05:13:23.864787"]]
260
+  (0.1ms) RELEASE SAVEPOINT active_record_1
261
+  (0.1ms) SAVEPOINT active_record_1
262
+ SQL (0.1ms) DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
264
+  (0.2ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (1,'2'))
265
+  (1.3ms) rollback transaction
266
+  (0.1ms) begin transaction
267
+  (0.0ms) SAVEPOINT active_record_1
268
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
270
+  (0.0ms) SAVEPOINT active_record_1
271
+ SQL (0.3ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.872645"], ["updated_at", "2015-09-11 05:13:23.872645"]]
272
+  (0.0ms) RELEASE SAVEPOINT active_record_1
273
+  (0.0ms) SAVEPOINT active_record_1
274
+ SQL (0.0ms) DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
275
+  (0.0ms) RELEASE SAVEPOINT active_record_1
276
+  (0.1ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('2'))
277
+  (1.2ms) rollback transaction
278
+  (0.1ms) begin transaction
279
+  (0.0ms) SAVEPOINT active_record_1
280
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
282
+  (0.0ms) SAVEPOINT active_record_1
283
+ SQL (0.3ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.878267"], ["updated_at", "2015-09-11 05:13:23.878267"]]
284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
285
+  (0.0ms) SAVEPOINT active_record_1
286
+ SQL (0.0ms) DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 2]]
287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
288
+  (0.0ms) SAVEPOINT active_record_1
289
+ SQL (0.0ms) DELETE FROM "test_models" WHERE "test_models"."id" = ? [["id", 1]]
290
+  (0.0ms) RELEASE SAVEPOINT active_record_1
291
+  (0.1ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('2',1))
292
+  (1.5ms) rollback transaction
293
+  (0.1ms) begin transaction
294
+  (0.0ms) SAVEPOINT active_record_1
295
+ SQL (0.3ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.883933"], ["updated_at", "2015-09-11 05:13:23.883933"]]
296
+  (0.0ms) RELEASE SAVEPOINT active_record_1
297
+  (0.0ms) SAVEPOINT active_record_1
298
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
300
+  (0.2ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('1',2))
301
+  (1.5ms) rollback transaction
302
+  (0.1ms) begin transaction
303
+  (0.1ms) SAVEPOINT active_record_1
304
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
306
+  (0.0ms) SAVEPOINT active_record_1
307
+ SQL (0.3ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.892536"], ["updated_at", "2015-09-11 05:13:23.892536"]]
308
+  (0.0ms) RELEASE SAVEPOINT active_record_1
309
+  (0.1ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN ('1'))
310
+  (1.5ms) rollback transaction
311
+  (0.1ms) begin transaction
312
+  (0.0ms) SAVEPOINT active_record_1
313
+ SQL (0.2ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.896889"], ["updated_at", "2015-09-11 05:13:23.896889"]]
314
+  (0.0ms) RELEASE SAVEPOINT active_record_1
315
+  (0.0ms) SAVEPOINT active_record_1
316
+ SQL (0.4ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
318
+  (0.1ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (1))
319
+  (1.5ms) rollback transaction
320
+  (0.3ms) begin transaction
321
+  (0.1ms) SAVEPOINT active_record_1
322
+ SQL (0.5ms) 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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
324
+  (0.0ms) SAVEPOINT active_record_1
325
+ SQL (0.3ms) INSERT INTO "test_models" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "MyString"], ["created_at", "2015-09-11 05:13:23.907600"], ["updated_at", "2015-09-11 05:13:23.907600"]]
326
+  (0.1ms) RELEASE SAVEPOINT active_record_1
327
+  (0.1ms) SELECT CAST(id AS varchar) FROM "test_models" WHERE (test_models.id IN (1,2))
328
+  (1.4ms) 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.7
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