state_machine 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +5 -0
- data/Rakefile +3 -2
- data/lib/state_machine/integrations/active_record.rb +1 -1
- data/lib/state_machine/machine.rb +6 -3
- data/test/unit/integrations/active_record_test.rb +49 -0
- metadata +70 -72
- data/test/active_record.log +0 -2065
- data/test/sequel.log +0 -187
data/test/sequel.log
DELETED
@@ -1,187 +0,0 @@
|
|
1
|
-
# Logfile created on Sat Apr 25 10:49:30 -0400 2009 by /
|
2
|
-
DROP TABLE `foo`
|
3
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
4
|
-
PRAGMA table_info('foo')
|
5
|
-
DROP TABLE `foo`
|
6
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
7
|
-
DROP TABLE `foo`
|
8
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
9
|
-
DROP TABLE `foo`
|
10
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
11
|
-
Transaction.begin
|
12
|
-
INSERT INTO `foo` (`state`) VALUES ('parked')
|
13
|
-
SELECT * FROM `foo` WHERE (`id` = 1) LIMIT 1
|
14
|
-
Transaction.commit
|
15
|
-
Transaction.begin
|
16
|
-
INSERT INTO `foo` (`state`) VALUES ('idling')
|
17
|
-
SELECT * FROM `foo` WHERE (`id` = 2) LIMIT 1
|
18
|
-
Transaction.commit
|
19
|
-
SELECT * FROM `foo` WHERE ((`state` NOT IN ('parked')) AND (`state` = 'idling'))
|
20
|
-
DROP TABLE `foo`
|
21
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
22
|
-
DROP TABLE `foo`
|
23
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
24
|
-
DROP TABLE `foo`
|
25
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
26
|
-
DROP TABLE `foo`
|
27
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
28
|
-
DROP TABLE `foo`
|
29
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
30
|
-
DROP TABLE `foo`
|
31
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
32
|
-
DROP TABLE `foo`
|
33
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
34
|
-
DROP TABLE `foo`
|
35
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
36
|
-
DROP TABLE `foo`
|
37
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
38
|
-
Transaction.begin
|
39
|
-
INSERT INTO `foo` (`state`) VALUES (NULL)
|
40
|
-
SELECT * FROM `foo` WHERE (`id` = 1) LIMIT 1
|
41
|
-
Transaction.commit
|
42
|
-
SELECT COUNT(*) FROM `foo` LIMIT 1
|
43
|
-
DROP TABLE `foo`
|
44
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
45
|
-
Transaction.begin
|
46
|
-
INSERT INTO `foo` (`state`) VALUES ('parked')
|
47
|
-
SELECT * FROM `foo` WHERE (`id` = 1) LIMIT 1
|
48
|
-
Transaction.commit
|
49
|
-
Transaction.begin
|
50
|
-
INSERT INTO `foo` (`state`) VALUES ('idling')
|
51
|
-
SELECT * FROM `foo` WHERE (`id` = 2) LIMIT 1
|
52
|
-
Transaction.commit
|
53
|
-
SELECT * FROM `foo` WHERE (`state` IN ('parked'))
|
54
|
-
DROP TABLE `foo`
|
55
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
56
|
-
Transaction.begin
|
57
|
-
INSERT INTO `foo` (`state`) VALUES ('parked')
|
58
|
-
SELECT * FROM `foo` WHERE (`id` = 1) LIMIT 1
|
59
|
-
Transaction.commit
|
60
|
-
Transaction.begin
|
61
|
-
INSERT INTO `foo` (`state`) VALUES ('idling')
|
62
|
-
SELECT * FROM `foo` WHERE (`id` = 2) LIMIT 1
|
63
|
-
Transaction.commit
|
64
|
-
SELECT * FROM `foo` WHERE (`state` IN ('parked', 'idling'))
|
65
|
-
DROP TABLE `foo`
|
66
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
67
|
-
Transaction.begin
|
68
|
-
INSERT INTO `foo` (`state`) VALUES ('parked')
|
69
|
-
SELECT * FROM `foo` WHERE (`id` = 1) LIMIT 1
|
70
|
-
Transaction.commit
|
71
|
-
Transaction.begin
|
72
|
-
INSERT INTO `foo` (`state`) VALUES ('idling')
|
73
|
-
SELECT * FROM `foo` WHERE (`id` = 2) LIMIT 1
|
74
|
-
Transaction.commit
|
75
|
-
SELECT * FROM `foo` WHERE (`state` NOT IN ('idling'))
|
76
|
-
DROP TABLE `foo`
|
77
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
78
|
-
Transaction.begin
|
79
|
-
INSERT INTO `foo` (`state`) VALUES ('parked')
|
80
|
-
SELECT * FROM `foo` WHERE (`id` = 1) LIMIT 1
|
81
|
-
Transaction.commit
|
82
|
-
Transaction.begin
|
83
|
-
INSERT INTO `foo` (`state`) VALUES ('idling')
|
84
|
-
SELECT * FROM `foo` WHERE (`id` = 2) LIMIT 1
|
85
|
-
Transaction.commit
|
86
|
-
Transaction.begin
|
87
|
-
INSERT INTO `foo` (`state`) VALUES ('first_gear')
|
88
|
-
SELECT * FROM `foo` WHERE (`id` = 3) LIMIT 1
|
89
|
-
Transaction.commit
|
90
|
-
SELECT * FROM `foo` WHERE (`state` NOT IN ('first_gear'))
|
91
|
-
DROP TABLE `foo`
|
92
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
93
|
-
Transaction.begin
|
94
|
-
INSERT INTO `foo` (`state`) VALUES (NULL)
|
95
|
-
SELECT * FROM `foo` WHERE (`id` = 1) LIMIT 1
|
96
|
-
Transaction.rollback
|
97
|
-
SELECT COUNT(*) FROM `foo` LIMIT 1
|
98
|
-
DROP TABLE `foo`
|
99
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
100
|
-
Transaction.begin
|
101
|
-
INSERT INTO `foo` (`state`) VALUES ('idling')
|
102
|
-
SELECT * FROM `foo` WHERE (`id` = 1) LIMIT 1
|
103
|
-
Transaction.commit
|
104
|
-
DROP TABLE `foo`
|
105
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
106
|
-
Transaction.begin
|
107
|
-
INSERT INTO `foo` (`state`) VALUES ('idling')
|
108
|
-
SELECT * FROM `foo` WHERE (`id` = 1) LIMIT 1
|
109
|
-
Transaction.commit
|
110
|
-
DROP TABLE `foo`
|
111
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
112
|
-
Transaction.begin
|
113
|
-
INSERT INTO `foo` (`state`) VALUES ('idling')
|
114
|
-
SELECT * FROM `foo` WHERE (`id` = 1) LIMIT 1
|
115
|
-
Transaction.commit
|
116
|
-
DROP TABLE `foo`
|
117
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
118
|
-
Transaction.begin
|
119
|
-
INSERT INTO `foo` (`state`) VALUES ('idling')
|
120
|
-
SELECT * FROM `foo` WHERE (`id` = 1) LIMIT 1
|
121
|
-
Transaction.commit
|
122
|
-
DROP TABLE `foo`
|
123
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
124
|
-
Transaction.begin
|
125
|
-
INSERT INTO `foo` (`state`) VALUES ('idling')
|
126
|
-
SELECT * FROM `foo` WHERE (`id` = 1) LIMIT 1
|
127
|
-
Transaction.commit
|
128
|
-
DROP TABLE `foo`
|
129
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
130
|
-
Transaction.begin
|
131
|
-
INSERT INTO `foo` (`state`) VALUES ('idling')
|
132
|
-
SELECT * FROM `foo` WHERE (`id` = 1) LIMIT 1
|
133
|
-
Transaction.commit
|
134
|
-
DROP TABLE `foo`
|
135
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
136
|
-
Transaction.begin
|
137
|
-
INSERT INTO `foo` (`state`) VALUES ('idling')
|
138
|
-
SELECT * FROM `foo` WHERE (`id` = 1) LIMIT 1
|
139
|
-
Transaction.commit
|
140
|
-
DROP TABLE `foo`
|
141
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
142
|
-
Transaction.begin
|
143
|
-
INSERT INTO `foo` (`state`) VALUES ('idling')
|
144
|
-
SELECT * FROM `foo` WHERE (`id` = 1) LIMIT 1
|
145
|
-
Transaction.commit
|
146
|
-
DROP TABLE `foo`
|
147
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
148
|
-
Transaction.begin
|
149
|
-
INSERT INTO `foo` (`state`) VALUES ('idling')
|
150
|
-
SELECT * FROM `foo` WHERE (`id` = 1) LIMIT 1
|
151
|
-
Transaction.commit
|
152
|
-
DROP TABLE `foo`
|
153
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
154
|
-
DROP TABLE `foo`
|
155
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
156
|
-
DROP TABLE `foo`
|
157
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
158
|
-
DROP TABLE `foo`
|
159
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
160
|
-
DROP TABLE `foo`
|
161
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
162
|
-
DROP TABLE `foo`
|
163
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
164
|
-
DROP TABLE `foo`
|
165
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
166
|
-
DROP TABLE `foo`
|
167
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
168
|
-
DROP TABLE `foo`
|
169
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
170
|
-
DROP TABLE `foo`
|
171
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
172
|
-
DROP TABLE `foo`
|
173
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
174
|
-
DROP TABLE `foo`
|
175
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
176
|
-
DROP TABLE `foo`
|
177
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
178
|
-
DROP TABLE `foo`
|
179
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
180
|
-
DROP TABLE `foo`
|
181
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
182
|
-
DROP TABLE `foo`
|
183
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
184
|
-
DROP TABLE `foo`
|
185
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|
186
|
-
DROP TABLE `foo`
|
187
|
-
CREATE TABLE `foo` (`id` integer PRIMARY KEY AUTOINCREMENT, `state` string)
|